Nick
09/21/2018, 1:00 PMschemaPath: src/schema.graphql
how do I output schema.json
from the schema.graphql
How do I turn schema.graphql into schema.json?Nick
09/21/2018, 1:28 PMgraphql get-graphql-schema -j <http://localhost:4000> > schema.json
It's not working, I'm using this boilerplate
https://github.com/graphql-boilerplates/typescript-graphql-server/tree/master/basicnilan
09/21/2018, 2:21 PM.yml
file to a .json
file.Nick
09/21/2018, 2:33 PMschema.graphql
into schema.json
The reason why is because I want to use eslint-plugin-graphql and I need to have a schema JSON file.
https://github.com/apollographql/eslint-plugin-graphqlnilan
09/21/2018, 2:34 PM.graphqlconfig
for some reason. Disregard my previous comment.nilan
09/21/2018, 2:34 PMgraphql-cli
against a running server to get the `schema.json`: https://github.com/graphql-cli/graphql-cliNick
09/21/2018, 2:40 PMnilan
09/21/2018, 2:40 PMgraphql help
or check https://github.com/graphql-cli/graphql-cli#usage 🙂Nick
09/21/2018, 2:51 PM