Skip to content

Commit

Permalink
adding initialRequestConnectorsDebugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tayrrible committed Sep 10, 2024
1 parent 24f2d8a commit cc47638
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/sandbox/src/EmbeddedSandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit cc47638

Please sign in to comment.