Closed deser closed 5 years ago
From https://graphql.org/graphql-js/:
// Run the GraphQL query '{ hello }' and print out the response graphql(schema, '{ hello }', root).then((response) => { console.log(response); });
In src/utils/:
await graphql({ schema: schema, source: introspectionQuery });
And in source-code:
Created pull: https://github.com/dangcuuson/graphql-schema-typescript/pull/27
Actually graphql-js support both syntax (single arg & multiple args) via this line
But the es-lint is a nice addition so I'll accep the PR.
Cheers.
From https://graphql.org/graphql-js/:
In src/utils/: