Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to locate schema root node __schema #31

Closed
rmeruva29 opened this issue Aug 11, 2020 · 2 comments
Closed

Failed to locate schema root node __schema #31

rmeruva29 opened this issue Aug 11, 2020 · 2 comments

Comments

@rmeruva29
Copy link

rmeruva29 commented Aug 11, 2020

Hi, I'm running into this error "[ERROR] Failed to execute goal com.github.sparow199:apollo-client-maven-plugin:3.2.2:generate (default) on project xxx: Execution default of goal com.github.sparow199:apollo-client-maven-plugin:3.2.2:generate failed: Failed to parse GraphQL schema introspection query from /Users/rmeruva/xxx/src/main/graphql/schema.json: Failed to locate schema root node __schema -> [Help 1]"...Attaching the schema.json and query file (in txt format)
schema.txt
launchList.txt

I don't see this error when I use the schema provided in one of your examples(https://github.com/aoudiamoncef/spring-boot-mvc-apollo-graphql/tree/master/src/main/graphql).

Thanks

Originally posted by @rmeruva29 in #28 (comment)

@aoudiamoncef
Copy link
Owner

Hi @rmeruva29,
Please use this introspection query to get a valid schema.

Your schema output has different keys names(without _) and doesn't contain the data wrapper object...etc

@rmeruva29
Copy link
Author

That worked...thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants