`schemaPath: src/schema.graphql` how do I output `...
# orm-help
n
schemaPath: src/schema.graphql
how do I output
schema.json
from the
schema.graphql
How do I turn schema.graphql into schema.json?
I'm running this command to output json file
graphql 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/basic
n
There are online tools to convert a
.yml
file to a
.json
file.
n
@nilan I want to convert the
schema.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-graphql
n
Ah sorry, I thought you talk about
.graphqlconfig
for some reason. Disregard my previous comment.
You can use
graphql-cli
against a running server to get the `schema.json`: https://github.com/graphql-cli/graphql-cli
n
Do you know which command I should use? The other thing is even if there is an endpoint defined in my graphqlconfig it still complains no endpoint
n