Przejdź do głównej zawartości

Interface: DebugEvent

Structured event handed to a custom DebugOptions.log sink. Stable contract: phase and operationName are always present; data carries the merged payload selected by DebugOptions flags.

phase: 'cookie' events come from the SDK cookie layer (cart / currency / language) rather than the GraphQL transport — operationName is undefined and data is { name, action: 'set' | 'clear', value?, maxAge? }. They let you see exactly when a cookie was written or removed (e.g. cart-id cleared by complete()) alongside the GraphQL timeline.

Properties

data

data: Record<string, unknown>


operationName

operationName: string | undefined


phase

phase: "request" | "response" | "cookie"