Module: CollectionFind

CollectionFind factory.
Mixes In:
Source:

Methods

execute(rowcbopt) → {Promise.<module:Result>}

Execute find query.
Parameters:
Name Type Attributes Description
rowcb module:CollectionFind~documentCursor <optional>
callback function to handle results
Source:
Returns:
Type
Promise.<module:Result>

fields(projections) → {module:CollectionFind}

Pick collection properties for projection.
Parameters:
Name Type Description
projections Array.<string> | string expression with the properties to pick
Source:
Returns:
The query instance.
Type
module:CollectionFind

Type Definitions

documentCursor(object)

Document cursor.
Parameters:
Name Type Description
object object the document in the current cursor position
Source: