Skip to content

Commit

Permalink
fix: updated introspectionquery reference for graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Robison committed Jan 18, 2023
1 parent 43b23f2 commit 6081794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Ajv = require('ajv');
const { INPUT_SUFFIX, newContext, convert, UnknownTypeReference, getConvertEnumFromGraphQLCode } = require('../src/converter');
const {
parse, execute, buildSchema, printSchema,
GraphQLSchema, GraphQLObjectType, introspectionQuery
GraphQLSchema, GraphQLObjectType, getIntrospectionQuery
} = require('graphql');
const tmp = require('tmp-promise');
const fs = require('fs-extra');
Expand Down Expand Up @@ -50,6 +50,7 @@ function makeSchemaForType (output, input) {
}

async function compareSchemas (test, schema, expectedSchema) {
const introspectionQuery = getIntrospectionQuery();
const introspection = await execute({
schema,
document: parse(introspectionQuery)
Expand Down

0 comments on commit 6081794

Please sign in to comment.