function

Where

Authorize only documents matching an atomic predicate.

Arguments

ArgumentTypeDescription
expressionquery.ExpressionA non-nil predicate kept on the atomic store operation.

Returns

An immutable filtered decision.

AccessDecision

How it works

Where panics for a nil expression. Returning a predicate never authorizes a separate read-then-write check.

Full signature

Related types

  • Expression

    A sealed immutable predicate consumed atomically by stores.

  • AccessDecision

    An allow, deny, or filtered authorization result.