Comparison Operators
The RequestQueryBuilder supports a comprehensive set of comparison operators for filtering and searching. Operators are prefixed with$ to avoid conflicts with field names.
Equality Operators
$eq (Equals)
Matches values that are equal to a specified value.string | number | boolean
The value to match exactly
$ne (Not Equals)
Matches values that are not equal to a specified value.string | number | boolean
The value to exclude
Comparison Operators
$gt (Greater Than)
Matches values that are greater than a specified value.$gte (Greater Than or Equal)
Matches values that are greater than or equal to a specified value.$lt (Less Than)
Matches values that are less than a specified value.$lte (Less Than or Equal)
Matches values that are less than or equal to a specified value.String Operators
$starts (Starts With)
Matches string values that start with a specified substring.String matching is case-sensitive by default. Use the lowercase variants (e.g.,
$startsL) for case-insensitive matching.$ends (Ends With)
Matches string values that end with a specified substring.$cont (Contains)
Matches string values that contain a specified substring.$excl (Excludes)
Matches string values that do not contain a specified substring.Array Operators
$in (In Array)
Matches values that are included in a specified array.array
Array of values to match against
$notin (Not In Array)
Matches values that are not included in a specified array.Range Operators
$between (Between)
Matches values that fall within a specified range (inclusive).[any, any]
Array with two elements: [min, max]
Null Operators
$isnull (Is Null)
Matches records where the field value is null.The
$isnull and $notnull operators do not require a value parameter.$notnull (Is Not Null)
Matches records where the field value is not null.Case-Insensitive Operators
All string operators have case-insensitive variants with anL suffix (for “lowercase”).
$eqL (Equals - Case Insensitive)
$neL (Not Equals - Case Insensitive)
$startsL (Starts With - Case Insensitive)
$endsL (Ends With - Case Insensitive)
$contL (Contains - Case Insensitive)
$exclL (Excludes - Case Insensitive)
$inL (In Array - Case Insensitive)
$notinL (Not In Array - Case Insensitive)
Logical Operators
Logical operators are used with thesearch() method to create complex queries with AND/OR logic.
$or (Logical OR)
Matches records that satisfy at least one of the specified conditions.$or can be used at the root level or nested within field conditions.$and (Logical AND)
Matches records that satisfy all of the specified conditions.Sort Operators
Sort operators determine the order of results.ASC (Ascending)
Sorts results in ascending order (A-Z, 0-9, oldest to newest).DESC (Descending)
Sorts results in descending order (Z-A, 9-0, newest to oldest).Deprecated Operators
The following operators are deprecated but still supported for backward compatibility. Use the$ prefixed versions instead.