prisma-labs / get-graphql-schema

Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)
669 stars 62 forks source link

import utilities from the correct path #51

Open despairblue opened 4 years ago

despairblue commented 4 years ago

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 commented 4 years ago

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

Betree commented 3 years ago

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?

tslater commented 3 years ago

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

MarkLyck commented 2 years ago

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