cjoudrey / graphql-schema-linter

Validate GraphQL schema definitions against a set of rules
MIT License
694 stars 62 forks source link

(0 , _extendSchema.getDescription) is not a function #287

Open m3lnic opened 3 years ago

m3lnic commented 3 years ago

Running the schema linter against our schema results in the following error:

It looks like you may have hit a bug in graphql-schema-linter.

It would be super helpful if you could report this here: https://github.com/cjoudrey/graphql-schema-linter/issues/new

TypeError: (0 , _extendSchema.getDescription) is not a function
    at Object.InputValueDefinition (/Users/{name}/Documents/pl-backend/node_modules/graphql-schema-linter/lib/rules/input_object_values_have_descriptions.js:15:44)
    at Object.enter (/Users/{name}/Documents/pl-backend/node_modules/graphql/language/visitor.js:324:29)
    at Object.enter (/Users/{name}/Documents/pl-backend/node_modules/graphql/language/visitor.js:375:25)
    at visit (/Users/{name}/Documents/pl-backend/node_modules/graphql/language/visitor.js:242:26)
    at validate (/Users/{name}/Documents/pl-backend/node_modules/graphql/validation/validate.js:73:24)
    at validateSchemaDefinition (/Users/{name}/Documents/pl-backend/node_modules/graphql-schema-linter/lib/validator.js:70:43)
    at run (/Users/{name}/Documents/pl-backend/node_modules/graphql-schema-linter/lib/runner.js:68:58)

Running GraphQL version 14.7.0 and we are using it alongside Apollo so we are currently staying on this version. The node version is 14.17.0.