Skip to content

Query Operators

All standard Feathers query operators are supported, plus the following:

Comparison Operators

OperatorSQLDescription
$lt<Less than
$lte<=Less than or equal
$gt>Greater than
$gte>=Greater than or equal
$inINIn a list of values
$ninNOT INNot in a list of values
$eq= / ISEqual (handles null)
$ne!= / IS NOTNot equal (handles null)

Pattern Matching

OperatorSQLDescription
$likeLIKEPattern matching
$notLikeNOT LIKENegated pattern matching
$iLikeILIKECase-insensitive pattern matching (PostgreSQL)

Array Operators (PostgreSQL)

OperatorSQLDescription
$contains@>Array contains
$contained<@Array contained by
$overlap&&Array overlap

Logical Operators

$and and $or are supported for combining conditions:

ts
// Users named Alice who are at least 18
await app.service("users").find({
  query: {
    $and: [{ name: "Alice" }, { age: { $gte: 18 } }],
  },
});

// Users named Alice or Bob
await app.service("users").find({
  query: {
    $or: [{ name: "Alice" }, { name: "Bob" }],
  },
});