Define a Context type, then write a TypeScript expression against it. The compiled CEL appears below.
Context (TypeScript)Top-level fields are destructured into scope in the body below
Body — expressionIn scope: user, req, roles — A single expression. For statements (switch, loops, const), wrap them in a zero-arg IIFE: `(() => { … })()`.
✓No problems detected
Compiled CEL (read-only)
Decision tree (outer branching)
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.