Skip to content

Commit 5b9a2b2

Browse files
committed
fix: export mergeSchemas from graphql-yoga and use it
1 parent 52535ee commit 5b9a2b2

File tree

4 files changed

+59
-17
lines changed

4 files changed

+59
-17
lines changed

packages/graphql-yoga/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export * from './types.js';
1212
export { maskError } from './utils/mask-error.js';
1313
export { type OnParamsEventPayload } from './plugins/types.js';
1414
export { createLRUCache } from './utils/create-lru-cache.js';
15+
export { mergeSchemas } from '@graphql-tools/schema';
1516
export {
1617
// Handy type utils
1718
type Maybe,

packages/nestjs/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
"graphql": "^15.0.0 || ^16.0.0",
5252
"graphql-yoga": "^4.0.5"
5353
},
54-
"dependencies": {
55-
"@graphql-tools/schema": "^10.0.0"
56-
},
5754
"devDependencies": {
5855
"@nestjs/common": "^10.0.0",
5956
"@nestjs/core": "^10.0.0",

packages/nestjs/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { GraphQLSchema, printSchema } from 'graphql';
44
import {
55
createYoga,
66
filter,
7+
mergeSchemas,
78
pipe,
89
YogaSchemaDefinition,
910
YogaServerInstance,
1011
YogaServerOptions,
1112
} from 'graphql-yoga';
1213
import type { ExecutionParams } from 'subscriptions-transport-ws';
13-
import { mergeSchemas } from '@graphql-tools/schema';
1414
import { Injectable, Logger } from '@nestjs/common';
1515
import {
1616
AbstractGraphQLDriver,

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)