Closed
Description
There's a regression error that surfaces using graphql v14
TypeError: Cannot read property 'slice' of undefined
at buildDirective (../node_modules/graphql/utilities/buildClientSchema.js:286:51)
at Array.map (<anonymous>)
at Object.buildClientSchema (../node_modules/graphql/utilities/buildClientSchema.js:302:84)
at Object.introspectionToGraphQLSchema (../node_modules/graphql-codegen-core/dist/utils/introspection-to-schema.js:11:22)
at Request._callback (../node_modules/graphql-code-generator/dist/loaders/schema/introspection-from-url.js:59:48)
at Request.self.callback (../node_modules/graphql-code-generator/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.<anonymous> (../node_modules/graphql-code-generator/node_modules/request/request.js:1161:10)
at Request.emit (events.js:182:13)
at IncomingMessage.<anonymous> (../node_modules/graphql-code-generator/node_modules/request/request.js:1083:12)
This looks like its due to the breaking change by graphql/graphql-js#1429. More on changes in graphql v14 at graphql/graphql-js#1383