Fork me on GitHub

Everything here is experimental, and the API is no exception, so expect things to change in future releases.

Find Operators

Operators to be used on key_map.find(spec):

$eq : value

Indexed value must equal given value.

$gt : value

Indexed value must be greater than given value.

$gte : value

Indexed value must be greater than or equal to given value.

$in : array

Indexed value must be in array.

$lt : value

Indexed value must be smaller than given value.

$lte : value

Indexed value must be smaller than or equal to given value.

$neq : value

Indexed value must not be equal to given value

$nin : array

Indexed value must not be in given array

$or : spec

Give alternative specification. spec must conform to find (spec).

$range: start, end [, exclude_start = false [, exclude_end = false]]

(only available on ordered indexes)

Selects records greater than or equal to start and smaller than or equal to end.

If start is null starts from the smallest value of the index

If end is null stops at the end of the index

if exclusive_start is true, selects only records greater than start.

if exclusive_end is true, selects only records smaller than end.