Syntax

value.ge(otherValue) → result

Arguments

List of arguments to provide.
otherValue
string | number
required
The value to compare with. The type of the value being compared depends on the value used for comparison.

Optargs

No optional arguments.

Returns

result
boolean
Returns true if the first value is greater than or equal to the second value and false otherwise.

Behavior

  • Performs greater than or equal comparison between two values.
  • Uses RuloDB’s comparison semantics for ordering and type handling.
  • Can be chained with other logical operators for complex conditions.

Notes & Caveats

  • Comparison behavior depends on the data types being compared.
  • String comparisons use lexicographic ordering.

Example

Filter users by age

Filter for users who are 21 or older.
await r
  .table('users')
  .filter((doc) => doc.age.ge(21))
  .run(client);

Filter by date

Filter for orders created on or after a specific date.
await r
  .table('orders')
  .filter((doc) => doc.createdAt.ge('2024-01-01'))
  .run(client);
  • eq - Logical Equality Operation
  • ne - Logical Inequality Operation
  • lt - Logical Less Than Operation
  • le - Logical Less Than or Equal Operation
  • gt - Logical Greater Than Operation
  • and - Logical AND Operation
  • or - Logical OR Operation
  • not - Logical NOT Operation
  • field - Referencing a Field
  • filter - Filtering Documents

Found a typo? Or maybe a broken link? RuloDB is open-source, help us fix it!