I am having problems creating a schema.json file that can be processed using the babel-relay-plugin module without triggering an error. Having looked at the schema.json file included in the relay examples folder, I tried to copy the query into GraphiQL, but I canβt get it right. I use Laravel as a backend. Can I do this via GraphiQL or send a query to the GraphQL endpoint and save the response?
An error occurred while trying to parse the schema.json file:
Cannot read property 'reduce' of undefined while parsing file: /Users/username/Sites/Homestead/Code/ineedmg-graphql/resources/assets/js/app.js
Last attempt to use GraphiQL:
{ __schema { queryType { name }, types { kind, name, description, fields { name, description, type { name, kind, ofType { name description } } isDeprecated, deprecationReason, }, inputFields { name description } interfaces { kind name description }, enumValues { name description isDeprecated deprecationReason } }, mutationType { name }, directives { name, description, onOperation, onFragment, onField, args { name description defaultValue } } } }
source share