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

fix instrospection grapgql query #4674

Merged

Conversation

edulecca
Copy link
Contributor

Context

As it was reported on Issue-4670
ra-data-graphql uses introspectionQuery from graphql-js.
The export was finally deprecated on graphql:15.0.0 graphql/graphql-js@6b55019, and must be use getIntrospectionQuery() instead.

Error

The Error shown when grapqhql:15.0.0 is installed in ra-data-graphq and other packages that use the library as ra-data-graphcool was:
WARNING in ./node_modules/ra-data-graphql/esm/introspection.js 94:202-220 "export 'introspectionQuery' was not found in 'graphql'

Fix

Due to ra-data-graphql use graphql:14.1.1, which exports both introspectionQuery and getIntrospectionQuery(), the fix proposed is to replaced depracated export on the newer version of grapqhl (introspectionQuery) to the function getIntrospectionQuery().

@jdemangeon jdemangeon added this to the 3.4.2 milestone Apr 14, 2020
@jdemangeon jdemangeon merged commit d26841c into marmelab:master Apr 14, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants