between
ReQL command: between
Command syntax
table.between(lowerKey, upperKey[, options]) → table_slice table_slice.between(lowerKey, upperKey[, options]) → table_slice
Description
Get all documents between two keys. Accepts three optional arguments: index
, leftBound
, and rightBound
. If index
is set to the name of a secondary index, between
will return all documents where that index’s value is in the specified range (it uses the primary key by default). leftBound
or rightBound
may be set to open
or closed