Skip to content

Commit

Permalink
chore(gatsby-source-graphql): remove graphql dependency and use gatsb…
Browse files Browse the repository at this point in the history
…y/graphql (#27150)

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
vladar and gatsbybot committed Sep 28, 2020
1 parent b6cde3b commit 2e2e5c5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/gatsby-source-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"apollo-link": "1.2.14",
"apollo-link-http": "^1.5.17",
"dataloader": "^2.0.0",
"graphql": "^14.6.0",
"invariant": "^2.2.4",
"node-fetch": "^1.7.3",
"uuid": "3.4.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { parse } = require(`graphql`)
const { parse } = require(`gatsby/graphql`)
const { execute } = require(`apollo-link`)
const { createDataloaderLink } = require(`../dataloader-link`)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { print, parse } = require(`graphql`)
const { print, parse } = require(`gatsby/graphql`)
const { merge, resolveResult } = require(`../merge-queries`)

describe(`Query merging`, () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const DataLoader = require(`dataloader`)
const { ApolloLink, Observable } = require(`apollo-link`)
const { print } = require(`graphql`)
const { print } = require(`gatsby/graphql`)
const { merge, resolveResult } = require(`./merge-queries`)

export function createDataloaderLink(options) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { visit, visitInParallel, Kind } = require(`graphql`)
const { visit, visitInParallel, Kind } = require(`gatsby/graphql`)
const _ = require(`lodash`)

const Prefix = {
Expand Down

0 comments on commit 2e2e5c5

Please sign in to comment.