Skip to content

Commit b95bf85

Browse files
committed
upgrade to v6
1 parent ee3c86a commit b95bf85

File tree

4 files changed

+119
-3
lines changed

4 files changed

+119
-3
lines changed

package-lock.json

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"license": "BSD-3-Clause",
2121
"dependencies": {
2222
"@apollographql/graphql-playground-html": "1.6.24",
23+
"@graphql-tools/stitch": "^6.0.0",
24+
"@graphql-tools/utils": "^6.0.0",
2325
"@parse/fs-files-adapter": "1.0.1",
2426
"@parse/push-adapter": "3.2.0",
2527
"@parse/s3-files-adapter": "1.4.0",

src/GraphQL/ParseGraphQLSchema.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import {
55
DocumentNode,
66
GraphQLNamedType,
77
} from 'graphql';
8-
import { mergeSchemas, SchemaDirectiveVisitor } from 'graphql-tools';
8+
import { stitchSchemas } from '@graphql-tools/stitch';
9+
import { SchemaDirectiveVisitor } from '@graphql-tools/utils';
910
import requiredParameter from '../requiredParameter';
1011
import * as defaultGraphQLTypes from './loaders/defaultGraphQLTypes';
1112
import * as parseClassTypes from './loaders/parseClassTypes';
@@ -251,7 +252,7 @@ class ParseGraphQLSchema {
251252
}
252253
}
253254
);
254-
this.graphQLSchema = mergeSchemas({
255+
this.graphQLSchema = stitchSchemas({
255256
schemas: [
256257
this.graphQLSchemaDirectivesDefinitions,
257258
this.graphQLAutoSchema,

src/GraphQL/loaders/schemaDirectives.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import gql from 'graphql-tag';
2-
import { SchemaDirectiveVisitor } from 'graphql-tools';
2+
import { SchemaDirectiveVisitor } from '@graphql-tools/utils';
33
import { FunctionsRouter } from '../../Routers/FunctionsRouter';
44

55
export const definitions = gql`

0 commit comments

Comments
 (0)