-
Notifications
You must be signed in to change notification settings - Fork 2k
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
introspectionQuery cant work #515
Comments
Perhaps you're passing in an object that looks like |
Hey @ifelsee thanks for opening this issue! You're getting this error because you are executing a modern introspection query that asks for the locations field on the directive type, but the GraphQL servers you're hitting are running an older version from before the locations field was added. We added support for directive locations here. If you're just using these two GraphQL endpoints for testing and have control over your own GraphQL endpoint, upgrading to a newer version of GraphQL-js (>0.5.0) will support the locations field on directives. If this workaround is sufficient, please go ahead and close this issue. We've deployed an updated SWAPI sample that should work with the introspection query you pasted: https://swapi-graphql.now.sh/. As for graphqlhub, there is already an open issue: clayallsopp/graphqlhub#37. |
@robzhu Very useful! Thank you for your answer |
Here is my code
I get an Error
Module build failed: Error: Invalid introspection data supplied to
getBabelRelayPlugin(). The resulting schema is not an object with a
__schemaproperty.
then i check code and found something make this error
I test by http://graphql-swapi.parseapp.com/ and
https://www.graphqlhub.com/playground
all query
The text was updated successfully, but these errors were encountered: