Skip to content

Commit e5389b7

Browse files
committed
feat: new protocol
1 parent f7b64d8 commit e5389b7

File tree

3 files changed

+52
-12
lines changed

3 files changed

+52
-12
lines changed

packages/graphql-yoga/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"dependencies": {
5252
"@envelop/core": "^5.0.1",
53-
"@graphql-tools/executor": "^1.3.0",
53+
"@graphql-tools/executor": "2.0.0-alpha-20240804115623-ba8ea361d8cc77c657068ef6648d977439b63ab3",
5454
"@graphql-tools/schema": "^10.0.4",
5555
"@graphql-tools/utils": "^10.3.2",
5656
"@graphql-yoga/logger": "workspace:^",

packages/plugins/defer-stream/src/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,15 @@ export function useDeferStream<
5555
addValidationRule(DeferStreamDirectiveOnRootFieldRule);
5656
addValidationRule(StreamDirectiveOnListFieldRule);
5757
},
58+
onExecute({ args }) {
59+
// @ts-expect-error we don't have this typing in envelop
60+
args.deduplicateDefers = false;
61+
// @ts-expect-error we don't have this typing in envelop
62+
args.sendIncrementalErrorsAsNull = true;
63+
// @ts-expect-error we don't have this typing in envelop
64+
args.sendPathAndLabelOnIncremental = true;
65+
// @ts-expect-error we don't have this typing in envelop
66+
args.errorWithIncrementalSubscription = false;
67+
},
5868
};
5969
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)