From cc47638c1d7b04586a8ebed7d93154bec2acdef8 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Tue, 10 Sep 2024 14:21:39 -0500 Subject: [PATCH 1/2] adding initialRequestConnectorsDebugging --- packages/sandbox/src/EmbeddedSandbox.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/sandbox/src/EmbeddedSandbox.ts b/packages/sandbox/src/EmbeddedSandbox.ts index 5fa54e48..229fa57c 100644 --- a/packages/sandbox/src/EmbeddedSandbox.ts +++ b/packages/sandbox/src/EmbeddedSandbox.ts @@ -92,6 +92,11 @@ type InternalEmbeddableSandboxOptions = EmbeddableSandboxOptions & { __testLocal__?: boolean; initialRequestQueryPlan?: boolean; runtime?: string; + /** + * optional. defaults to `false`. + * Whether or not to include the `Apollo-Connectors-Debugging: true` header in requests + */ + initialRequestConnectorsDebugging?: boolean; }; let idCounter = 0; @@ -175,6 +180,8 @@ export class EmbeddedSandbox { version: packageJSON.version, runTelemetry: runTelemetry === undefined ? true : runTelemetry, initialRequestQueryPlan: this.options.initialRequestQueryPlan ?? false, + initialRequestConnectorsDebugging: + this.options.initialRequestConnectorsDebugging ?? false, shouldDefaultAutoupdateSchema: this.options.initialState?.pollForSchemaUpdates ?? true, endpointIsEditable: this.options.endpointIsEditable, From bbcdabf19a3d05e3b9b619475676e34774dd9ea9 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Tue, 10 Sep 2024 14:23:31 -0500 Subject: [PATCH 2/2] including changeset --- .changeset/fuzzy-fans-invite.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fuzzy-fans-invite.md diff --git a/.changeset/fuzzy-fans-invite.md b/.changeset/fuzzy-fans-invite.md new file mode 100644 index 00000000..ee4df881 --- /dev/null +++ b/.changeset/fuzzy-fans-invite.md @@ -0,0 +1,5 @@ +--- +'@apollo/sandbox': minor +--- + +Adding support for `initialRequestConnectorsDebugging` to `EmbeddedSandbox`