removes usage of deprecated graphql constant (#3926)

see: https://github.com/graphql/graphql-js/pull/2124/files
This commit is contained in:
Dimitri Mitropoulos 2021-08-18 16:38:38 -04:00 committed by GitHub
parent 0ef92797cd
commit f3bfbf76aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,7 @@ import electron, { OpenDialogOptions } from 'electron';
import { readFileSync } from 'fs'; import { readFileSync } from 'fs';
import type { GraphQLArgument, GraphQLField, GraphQLSchema, GraphQLType } from 'graphql'; import type { GraphQLArgument, GraphQLField, GraphQLSchema, GraphQLType } from 'graphql';
import { parse, print, typeFromAST } from 'graphql'; import { parse, print, typeFromAST } from 'graphql';
import { buildClientSchema } from 'graphql/utilities/buildClientSchema'; import { buildClientSchema, getIntrospectionQuery } from 'graphql/utilities';
import { introspectionQuery } from 'graphql/utilities/introspectionQuery';
import { json as jsonPrettify } from 'insomnia-prettify'; import { json as jsonPrettify } from 'insomnia-prettify';
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
@ -272,7 +271,7 @@ class GraphQLEditor extends PureComponent<Props, State> {
try { try {
const bodyJson = JSON.stringify({ const bodyJson = JSON.stringify({
query: introspectionQuery, query: getIntrospectionQuery(),
operationName: 'IntrospectionQuery', operationName: 'IntrospectionQuery',
}); });
const introspectionRequest = await db.upsert( const introspectionRequest = await db.upsert(