get-graphql-schema icon indicating copy to clipboard operation
get-graphql-schema copied to clipboard

import utilities from the correct path

Open despairblue opened this issue 5 years ago • 4 comments
trafficstars

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.

despairblue avatar Nov 02 '20 13:11 despairblue

Not sure what the failure means. I guess I'm supposed to change the commit message, right?

despairblue avatar Nov 02 '20 13:11 despairblue

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?

Betree avatar Dec 16 '20 13:12 Betree

Yeah having >1 graphql package is a problem...and this packages is getting behind. Would love to see this resolved!!!

tslater avatar Jan 02 '21 05:01 tslater

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? :(

MarkLyck avatar Jul 04 '22 16:07 MarkLyck