-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
graphql-node-api/src/graphql/query.ts
Lines 5 to 11 in 01e3b0f
| const Query = ` | |
| type Query { | |
| ${ commentQueries } | |
| ${ postQueries } | |
| ${ userQueries } | |
| } | |
| ` |
Transform query.ts schema into a helper. This improves readability and scales even with big amount of queries.
export const Query = createQuerySchema(
commentQueries,
postQueries,
userQueries
);Metadata
Metadata
Assignees
Labels
No labels