get-graphql-schema
get-graphql-schema copied to clipboard
import utilities from the correct path
See documentation: https://graphql.org/graphql-js/utilities/
With GraphQL 15 the import path's have changed. According to the docs the things should be imported from graphql-js/utilities.
I also needed to change introspectionQuery to getIntrospectionQuery as only the latter was in the type definitions. Otherwise the tests would fail because it would not compile.
Not sure what the failure means. I guess I'm supposed to change the commit message, right?
This change is required to add support for deprecated fields (see https://github.com/graphql/graphql-js/pull/2855). Would be great to have it merged, but I'm not sure if this package is still maintained?
Yeah having >1 graphql package is a problem...and this packages is getting behind. Would love to see this resolved!!!
Ugh, having the same problem.
Using graphql 16.x, and gettign this error:
Error: Cannot find module 'graphql/utilities/introspectionQuery'
This has been left broken since 2020? :(