Replies: 2 comments
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
-
using source property fs.writeFileSync(
path.join(__dirname, '../graphql/schema.graphql.json'),
JSON.stringify(await graphql({ schema: Schema, source: introspectionQuery }), null, 2)
) The result writed on schema.graphql.json is {
"errors": [
{}
]
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Creating file with schema on v15.x its very easy
but on Graphql16.x return
Error: Expected undefined to be a GraphQL schema.
I think is because has dropped the positional argumets
i try to add a object with schema
await graphql({schema: Schema})
its fails with this errormaybe it's because I'm missing the introspectionQuery, but i don't know in what property I need to put it
Beta Was this translation helpful? Give feedback.
All reactions