neumino / reqlite

Reqlite - RethinkDB in JavaScript
MIT License
338 stars 25 forks source link

Cannot reverse order of index after `between()` #76

Closed simonratner closed 8 years ago

simonratner commented 8 years ago

Query:

r.db(...).table(...).between(1, 10, {index: 'foo'}).orderBy({index: r.desc('foo')})

This is valid in rethinkdb (same index), and reverses the order of the indexed range. In reqlite, the query executes, but order is not reversed.