not<T> function

NotCondition<T> not<T>(
  1. T value
)

Used in the whereValues of DBAccess.loadBy, DBAccess.queryBy, and sqlWhereBy to indicate a field shall not be the given value, so-called negative condition.

Example,

await access.queryBy(..., {"removedAt": notNull, "type": not(1)});

See also inList and notNull

Implementation

NotCondition<T> not<T>(T value) => NotCondition<T>(value);