You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only one "thing" will be returned, even though there are multiple in the table. When running in the console using runp(), an array of all the records are returned, which is correct. But when using run(), only one record is returned.
The text was updated successfully, but these errors were encountered:
@ptrln -- this is by design, it's a way to use 'cursors' in node. If the callback returns true, it gets called again with the next record. If it returns nothing/false, it doesn't get called again (rethink assumes you don't want the rest of the records). An alternative is to call 'collect' instead of run, which will give you the whole dataset.
@wmrowan -- could you please improve the docs on this, and add 'collect' to the js docs?
@coffeemug , Thanks! I thought it might be something like that. Do you mean something like r.table('example').collect()? I tried running collect, and I got this error - TypeError: Object [object Function] has no method 'collect'
When running in node
Only one "thing" will be returned, even though there are multiple in the table. When running in the console using runp(), an array of all the records are returned, which is correct. But when using run(), only one record is returned.
The text was updated successfully, but these errors were encountered: