mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
removes usage of deprecated graphql constant (#3926)
see: https://github.com/graphql/graphql-js/pull/2124/files
This commit is contained in:
parent
0ef92797cd
commit
f3bfbf76aa
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user