Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

API cursor_methods

Michael Comella edited this page May 12, 2013 · 6 revisions

This object enumerates the methods that will be applied to the cursor before the query's result set is returned. The keys of this object are method names from the JavaScript cursor API and the associated values are objects representing the arguments to those functions. The keys of this argument object are parameter names and the values are the parameters' values. Methods for missing keys will not be called. Supported operations are as follows (each bullet point is a key):

  • sort :: cursor.sort(sort) :: Control the order that the query returns matching documents.
    • sort: A document whose fields specify the attributes on which to sort the result set.

TODO

  • Clean this up
Clone this wiki locally