|
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
);
graphql-node-api/src/graphql/query.ts
Lines 5 to 11 in 01e3b0f
Transform
query.tsschema into a helper. This improves readability and scales even with big amount of queries.