diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index c81a2049af..deb2d69c12 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -68,6 +68,7 @@ "express": "^4.19.2", "fork-ts-checker-webpack-plugin": "7.3.0", "graphql": "^17.0.0-alpha.7", + "graphql-for-export": "npm:graphql@^16.9.0", "graphql-helix": "^1.13.0", "graphql-subscriptions": "^2.0.0", "html-webpack-plugin": "^5.5.0", diff --git a/packages/graphiql/src/cdn.ts b/packages/graphiql/src/cdn.ts index d7a5914f9d..7a1c6584b1 100644 --- a/packages/graphiql/src/cdn.ts +++ b/packages/graphiql/src/cdn.ts @@ -6,7 +6,7 @@ */ import * as GraphiQLReact from '@graphiql/react'; import { createGraphiQLFetcher, createLocalStorage } from '@graphiql/toolkit'; -import * as GraphQL from 'graphql'; +import * as GraphQL from 'graphql-for-export'; import { GraphiQL } from './components/GraphiQL'; import '@graphiql/react/font/roboto.css'; diff --git a/yarn.lock b/yarn.lock index 489e1c7e1f..1879e81801 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10509,6 +10509,11 @@ graphql-config@5.0.3: string-env-interpolation "^1.0.1" tslib "^2.4.0" +"graphql-for-export@npm:graphql@^16.9.0": + version "16.9.0" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.9.0.tgz#1c310e63f16a49ce1fbb230bd0a000e99f6f115f" + integrity sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw== + graphql-helix@^1.13.0: version "1.13.0" resolved "https://registry.yarnpkg.com/graphql-helix/-/graphql-helix-1.13.0.tgz#e64dad5ef5f622ef38c97fa033f56f3d953c0104"