I would like to add Relay Modern to my app started from react-starter-kit. relay-compiler
needs a schema definition file (schema.graphql
), how can I generate it?
You can use get-graphql-schema for that:
npm install -g get-graphql-schema
get-graphql-schema ENDPOINT_URL > schema.graphql
This is based on a GraphQL introspection query, here's more information.