Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface QueryObject

An object to handle filtering the records returned by the #select and #upsert methods.

example
{
  id: 'Some ID',
  $and: [
    {$lte: {count: 10}},
    {$gte: {count: 5}}
  ],
  $or: [
    {$neq: {name: 'datboi'}},
    {$neq: {name: 'graham'}}
  ]
}

Hierarchy

  • QueryObject

Indexable

[key: string]: QueryField | QueryObject | QueryObject[] | undefined

Shortform equal

example
{field: value}

Index

Properties

Optional $and

$and: QueryObject[]

AND logical operator

example
{$and: [{expression}, {expression}, ...{expression}]}

Optional $eq

Equal operator

example
{$eq: {field: value}}

Optional $gt

Greater than operator

example
{$gt: {field: value}}

Optional $gte

Greater than or equal operator

example
{$gte: {field: value}}

Optional $lt

Less than operator

example
{$lt: {field: value}}

Optional $lte

Less than or equal operator

example
{$lte: {field: value}}

Optional $neq

Not equal operator

example
{$neq: {field: value}}

Optional $not

NOT logical operator

example
{$not: expression}

Optional $or

OR logical operator

example
{$or: [{expression}, {expression}, ...{expression}]}

Generated using TypeDoc