From f3bfbf76aac60ff83efebee1339d3de3dc544d2c Mon Sep 17 00:00:00 2001 From: Dimitri Mitropoulos Date: Wed, 18 Aug 2021 16:38:38 -0400 Subject: [PATCH] removes usage of deprecated graphql constant (#3926) see: https://github.com/graphql/graphql-js/pull/2124/files --- .../app/ui/components/editors/body/graph-ql-editor.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/insomnia-app/app/ui/components/editors/body/graph-ql-editor.tsx b/packages/insomnia-app/app/ui/components/editors/body/graph-ql-editor.tsx index 86e0afeff4..1169dcb425 100644 --- a/packages/insomnia-app/app/ui/components/editors/body/graph-ql-editor.tsx +++ b/packages/insomnia-app/app/ui/components/editors/body/graph-ql-editor.tsx @@ -5,8 +5,7 @@ import electron, { OpenDialogOptions } from 'electron'; import { readFileSync } from 'fs'; import type { GraphQLArgument, GraphQLField, GraphQLSchema, GraphQLType } from 'graphql'; import { parse, print, typeFromAST } from 'graphql'; -import { buildClientSchema } from 'graphql/utilities/buildClientSchema'; -import { introspectionQuery } from 'graphql/utilities/introspectionQuery'; +import { buildClientSchema, getIntrospectionQuery } from 'graphql/utilities'; import { json as jsonPrettify } from 'insomnia-prettify'; import React, { PureComponent } from 'react'; import ReactDOM from 'react-dom'; @@ -272,7 +271,7 @@ class GraphQLEditor extends PureComponent { try { const bodyJson = JSON.stringify({ - query: introspectionQuery, + query: getIntrospectionQuery(), operationName: 'IntrospectionQuery', }); const introspectionRequest = await db.upsert(