Skip to content

Commit 2e2e5c5

Browse files
vladargatsbybot
andauthored
chore(gatsby-source-graphql): remove graphql dependency and use gatsby/graphql (#27150)
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
1 parent b6cde3b commit 2e2e5c5

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

packages/gatsby-source-graphql/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"apollo-link": "1.2.14",
1515
"apollo-link-http": "^1.5.17",
1616
"dataloader": "^2.0.0",
17-
"graphql": "^14.6.0",
1817
"invariant": "^2.2.4",
1918
"node-fetch": "^1.7.3",
2019
"uuid": "3.4.0"

packages/gatsby-source-graphql/src/batching/__tests__/dataloader-link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { parse } = require(`graphql`)
1+
const { parse } = require(`gatsby/graphql`)
22
const { execute } = require(`apollo-link`)
33
const { createDataloaderLink } = require(`../dataloader-link`)
44

packages/gatsby-source-graphql/src/batching/__tests__/merge-queries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { print, parse } = require(`graphql`)
1+
const { print, parse } = require(`gatsby/graphql`)
22
const { merge, resolveResult } = require(`../merge-queries`)
33

44
describe(`Query merging`, () => {

packages/gatsby-source-graphql/src/batching/dataloader-link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const DataLoader = require(`dataloader`)
22
const { ApolloLink, Observable } = require(`apollo-link`)
3-
const { print } = require(`graphql`)
3+
const { print } = require(`gatsby/graphql`)
44
const { merge, resolveResult } = require(`./merge-queries`)
55

66
export function createDataloaderLink(options) {

packages/gatsby-source-graphql/src/batching/merge-queries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { visit, visitInParallel, Kind } = require(`graphql`)
1+
const { visit, visitInParallel, Kind } = require(`gatsby/graphql`)
22
const _ = require(`lodash`)
33

44
const Prefix = {

0 commit comments

Comments
 (0)