Skip to content
setDebugPreviewBranchMutation
setDebugPreviewBranch(branch: String): SetDebugPreviewBranchResult!

Set the preview branch to route requests to. Pass null (or omit) to clear the pinned preview and route to the main worker. Writes (or augments) the debug claim on the auth cookie; clients reload to pick up the new routing.

Arguments

branchString

Returns

SetDebugPreviewBranchResult!

See SetDebugPreviewBranchResult for the full shape.

Try it

Example
Query
mutation SetDebugPreviewBranch($branch: String) {
  setDebugPreviewBranch(branch: $branch) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql
setDebugPreviewBranch