QueryValueMatcher
See source codeDefines matching criteria for query values. Supports equality, inequality, and greater-than comparisons.
type QueryValueMatcher<T> =
| {
eq: T
}
| {
gt: number
}
| {
neq: T
}
Example
// Exact match
const exactMatch: QueryValueMatcher<string> = { eq: 'Science Fiction' }
// Not equal to
const notMatch: QueryValueMatcher<string> = { neq: 'Romance' }
// Greater than (numeric values only)
const greaterThan: QueryValueMatcher<number> = { gt: 2020 }
Prev
QueryExpressionNext
RecordFromId