charlypoly / graphql-to-json-schema

GraphQL Schema to JSON Schema
MIT License
202 stars 25 forks source link

Not working with latest version of graphql 16.3.0 #88

Open raman-exiliensoft opened 1 year ago

raman-exiliensoft commented 1 year ago

Getting Error: Expected undefined to be a GraphQL schema.

jguipi commented 1 year ago

same

brian221 commented 11 months ago

Issue is only with documentation. Latest version of graphqlSync takes an object as input.

const introspection = graphqlSync({ schema, source: getIntrospectionQuery() }).data