neumino / thinky

JavaScript ORM for RethinkDB
http://justonepixel.com/thinky/
Other
1.12k stars 128 forks source link

Convert a fetch ReQL query to a feed/stream #642

Open prashathsenthil opened 6 years ago

prashathsenthil commented 6 years ago

Hi,

I have the below ReQL query and would like to convert it to a stream, i'm using thinky (version ~2.2.4).

Query - r.db('my_db').table('my_table').getAll('/mypath', { index: 'path' }) .filter(r.row('lastUpdatedBy').eq('some_id'))

The above query returns the data as a cursor but can it be altered to return a feed/stream (like row by row). Please advice!