cursorToList {rethinker} | R Documentation |
Converts cursor into a list.
For convenience, when given anything other than cursor returns this object unchanged; this way can be used to wrap the result of $run
, so that it is never a cursor.
cursorToList(x, maxResults = 10000)
x |
RethinkDB cursor or any object. |
maxResults |
Number of results sufficient to stop pulling from cursor. |
A list of elements pulled from x
if it is a cursor, x
otherwise.
The lenght of a list may be larger than maxResults
because RethinkDB transmits results in batches.
Miron B. Kursa