Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No unnecessary inline fragment spreads for union types in federation and link dependencies #5913

Merged
merged 13 commits into from
Feb 23, 2024
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/apollo-engine-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-tools_batch-delegate-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/batch-delegate": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/delegate@^10.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.3) (from `^10.0.1`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_batch-execute-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/batch-execute": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.5`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-tools_delegate-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/delegate": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.5`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_executor-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/executor": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.8`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/executor-apollo-link": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/executor-envelop": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/wrap@^10.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.1) (from `^10.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/executor-graphql-ws": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.2`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_executor-http-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/executor-http": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.2`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/executor-legacy-ws": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/executor-urql-exchange": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_executor-yoga-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/executor-yoga": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.1`, in `dependencies`)
11 changes: 11 additions & 0 deletions .changeset/@graphql-tools_federation-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@graphql-tools/federation": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/delegate@^10.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.3) (from `^10.0.1`, in `dependencies`)
- Updated dependency [`@graphql-tools/executor-http@^1.0.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor-http/v/1.0.8) (from `^1.0.6`, in `dependencies`)
- Updated dependency [`@graphql-tools/merge@^9.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/merge/v/9.0.1) (from `^9.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/stitch@^9.0.4` ↗︎](https://www.npmjs.com/package/@graphql-tools/stitch/v/9.0.4) (from `^9.0.2`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/wrap@^10.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.1) (from `^10.0.0`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-tools_github-loader-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/github-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/executor-http@^1.0.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor-http/v/1.0.8) (from `^1.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/graphql-file-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_import-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/import": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/json-file-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-tools_links-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/links": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/delegate@^10.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.3) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-tools_load-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/load": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.11`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_merge-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/merge": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.10`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_mock-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/mock": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_module-loader-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/module-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_node-require-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/node-require": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.11`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_prisma-loader-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/prisma-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.8`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/relay-operation-optimizer": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/resolvers-composition": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_schema-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/schema": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.10`, in `dependencies`)
9 changes: 9 additions & 0 deletions .changeset/@graphql-tools_stitch-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@graphql-tools/stitch": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/delegate@^10.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.3) (from `^10.0.1`, in `dependencies`)
- Updated dependency [`@graphql-tools/merge@^9.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/merge/v/9.0.1) (from `^9.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/wrap@^10.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.1) (from `^10.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/stitching-directives": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/delegate@^10.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.3) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
8 changes: 8 additions & 0 deletions .changeset/@graphql-tools_url-loader-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@graphql-tools/url-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/delegate@^10.0.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.3) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/executor-http@^1.0.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor-http/v/1.0.8) (from `^1.0.5`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/wrap@^10.0.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/wrap/v/10.0.1) (from `^10.0.0`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-tools_wrap-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-tools/wrap": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.0.13) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/graphql-tools-5913-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"graphql-tools": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/schema@^10.0.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.2) (from `^10.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/swift-cows-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/delegate": patch
---

No unnecessary inline fragment spreads for union types
8 changes: 4 additions & 4 deletions packages/batch-delegate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/delegate": "^10.0.1",
"@graphql-tools/utils": "^10.0.0",
"@graphql-tools/delegate": "^10.0.3",
"@graphql-tools/utils": "^10.0.13",
"dataloader": "2.2.2",
"tslib": "^2.4.0",
"value-or-promise": "^1.0.12"
},
"devDependencies": {
"@graphql-tools/schema": "^10.0.0",
"@graphql-tools/stitch": "9.0.4"
"@graphql-tools/schema": "^10.0.2",
"@graphql-tools/stitch": "^9.0.4"
},
"publishConfig": {
"directory": "dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/batch-execute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.5",
"@graphql-tools/utils": "^10.0.13",
"dataloader": "^2.2.2",
"tslib": "^2.4.0",
"value-or-promise": "^1.0.12"
Expand Down
4 changes: 2 additions & 2 deletions packages/delegate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"dependencies": {
"@graphql-tools/batch-execute": "^9.0.1",
"@graphql-tools/executor": "^1.0.0",
"@graphql-tools/schema": "^10.0.0",
"@graphql-tools/utils": "^10.0.5",
"@graphql-tools/schema": "^10.0.2",
"@graphql-tools/utils": "^10.0.13",
"dataloader": "^2.2.2",
"tslib": "^2.5.0"
},
Expand Down
11 changes: 9 additions & 2 deletions packages/delegate/src/prepareGatewayDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
isAbstractType,
isCompositeType,
isInterfaceType,
isNonNullType,
isUnionType,
Kind,
SelectionNode,
SelectionSetNode,
Expand Down Expand Up @@ -442,8 +444,13 @@ function wrapConcreteTypes(
}
},
[Kind.FIELD]: (node: FieldNode) => {
const type = typeInfo.getType();
if (type != null && isAbstractType(getNamedType(type))) {
let type = typeInfo.getType();
type = isNonNullType(type) ? type.ofType : type;
if (
type != null &&
isAbstractType(getNamedType(type)) &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to spread on abstract type ?
Shouldn't the spread be inside the selection set of this type, to spread inline fragment for each final types possible ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100%, I just know that we need to spread interfaces and the _Entity union. Omitting either (or both) fails a bunch of data-fetching tests. Maybe @ardatan can shine some light. :D

(!isUnionType(type) || type.name === '_Entity') // unnecessary spread on union types, except for federation's "_Entity" (https://www.apollographql.com/docs/federation/subgraph-spec/#union-_entity)
) {
return {
...node,
selectionSet: {
Expand Down
2 changes: 1 addition & 1 deletion packages/executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.8",
"@graphql-tools/utils": "^10.0.13",
"@graphql-typed-document-node/core": "3.2.0",
"@repeaterjs/repeater": "^3.0.4",
"tslib": "^2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/executors/apollo-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"graphql": "^15.2.0 || ^16.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.0",
"@graphql-tools/utils": "^10.0.13",
"tslib": "^2.3.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/executors/envelop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"@envelop/core": "^3.0.4 || ^4.0.0 || ^5.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.0",
"@graphql-tools/wrap": "^10.0.0",
"@graphql-tools/utils": "^10.0.13",
"@graphql-tools/wrap": "^10.0.1",
"tslib": "^2.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/executors/graphql-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.2",
"@graphql-tools/utils": "^10.0.13",
"@types/ws": "^8.0.0",
"graphql-ws": "^5.14.0",
"isomorphic-ws": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/executors/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.2",
"@graphql-tools/utils": "^10.0.13",
"@repeaterjs/repeater": "^3.0.4",
"@whatwg-node/fetch": "^0.9.0",
"extract-files": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/executors/legacy-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.0",
"@graphql-tools/utils": "^10.0.13",
"@types/ws": "^8.0.0",
"isomorphic-ws": "^5.0.0",
"tslib": "^2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/executors/urql-exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"wonka": "^6.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.0.0",
"@graphql-tools/utils": "^10.0.13",
"tslib": "^2.4.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/executors/yoga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"dependencies": {
"@graphql-tools/executor-envelop": "^2.0.3",
"@graphql-tools/utils": "^10.0.1",
"@graphql-tools/utils": "^10.0.13",
"tslib": "^2.3.1"
},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions packages/federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/delegate": "^10.0.1",
"@graphql-tools/executor-http": "^1.0.6",
"@graphql-tools/merge": "^9.0.0",
"@graphql-tools/schema": "^10.0.0",
"@graphql-tools/stitch": "^9.0.2",
"@graphql-tools/utils": "^10.0.0",
"@graphql-tools/wrap": "^10.0.0",
"@graphql-tools/delegate": "^10.0.3",
"@graphql-tools/executor-http": "^1.0.8",
"@graphql-tools/merge": "^9.0.1",
"@graphql-tools/schema": "^10.0.2",
"@graphql-tools/stitch": "^9.0.4",
"@graphql-tools/utils": "^10.0.13",
"@graphql-tools/wrap": "^10.0.1",
"tslib": "^2.4.0",
"value-or-promise": "^1.0.12"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ type Query {
me: User
throw: String
fooBar: FooBar
mustFooBar: FooBar!
}
type User {
Expand Down Expand Up @@ -488,6 +489,7 @@ type Query {
me: User
throw: String
fooBar: FooBar
mustFooBar: FooBar!
_entities(representations: [_Any!]!): _Entity
}
Expand Down