Retrieve all results as a list.
Example: For small result sets it may be more convenient to process them at once as an array.
cursor = r.table('users').run() users = list(cursor) process_results(users)
The equivalent query with a
for loop would be:
cursor = r.table('users').run() for doc in cursor: process_results(doc)
Couldn't find what you were looking for?
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.