Skip to content

WherePredicate

Class: warmhub.WherePredicate

WherePredicate(field_path: str, op: WhereOp, rhs: WhereScalar | Sequence[WhereScalar] | None = None)

One field-value predicate, ready to serialize.

Construct through where; the constructor is public so a caller can build one from data without going through operator syntax.

to_wire()

Serialize to the wire predicate shape.

exists omits rhs entirely. The TypeScript type declares it rhs?: never, so sending "rhs": null would be a schema violation, not a harmless extra key.

field_path

Documentation is not yet available.

op

Documentation is not yet available.

rhs = None

Absent for exists. Deliberately not UNSET: this is a model, not a call signature, and to_wire omits the key rather than relying on the request builder’s UNSET filtering.