Closed benoror closed 3 years ago
Just tested SchemaComposer returned class and it succesfully returns instanceof GraphQLSchema
:
const { GraphQLSchema } = require('graphql')
//...
it('should return instanceof GraphQLSchema', async () => {
const schema = await getSchema();
expect(schema instanceof GraphQLSchema).toBe(true);
expect(schema.kind).toBe(undefined);
expect(schema.data).toBe(undefined);
});
Which makes me suspect why this code falls into the last else
instead of the first if
conditional:
🤔
Injected this console.log into the node module itself, and surprisingly there donesn't meet the condition! 😖
The only thing I can think of is that I am using "graphql": "^15.0.0"
and easygraphql-tester is using version "^14.4.0"
the problem is due to graphql@15.0.0. in earlier version it was exporting variable introspectionQuery
, which is now replaced by function getIntrospectionQuery
A new version has been release with the fix for this! 6.0.0
I am getting this error when providing a
GraphQLSchema
built with graphql-compose.github usingSchemaComposer.buildschema()
the code I am testing:
Appreciate any hint! Thanks!