Cannot get all records on a table with an empty query
Iiridayn opened this issue · comments
client.record.getList('search?' + JSON.stringify({ table: 'users', query: [] }));
will always return [], regardless of whether there are records or not. While one could use the predicate ['ds_id', 'ne', '0']
for virtually all conceivable situations, it should be much less awkward to get all records on a table.
Is there something I've missed? Normally deepstream.io wouldn't have a dynamic list of all records on the table, and I don't see another way to build such a list from rethink without using the search?
list builder.
Anyway, simple fix is to set query = true
and test if( query === true ) {
instead of null
in src/query-parser.js