Skip to content

zPropertyConditionValue

const zPropertyConditionValue: ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean]>

Provides a common structure for specifying conditions for the purposes of filtering.

Types of conditions:

  • Property Conditions filter on a property value(s) of the item
    • $equals is for absolute equality of a property value
    • $in is for absolute equality against any of a set of possible values
  • Logical Conditions apply predicate logic
    • $and for a logical AND of other conditions
    • $or for a logical OR of other conditions
    • $not for a logical NOT of a single condition
  • Relation Conditions apply for relations to an item
    • $exists for when the relation is present
    • $notExists for when the relation is not present