Description Usage Arguments Value Note Author(s)
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.
1 | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.