Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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().