CollectionFind factory.
Methods
-
execute( [dataCursor])
-
Execute find query.
Parameters:
Name Type Argument Description dataCursor
module:CollectionFind~documentCursor <optional>
callback function to handle results Returns:
- Type
- Promise.<module:DocResult>
-
fields(projections)
-
Pick collection properties for projection.
Parameters:
Name Type Description projections
Array.<string> | string expression with the properties to pick Returns:
The query instance.
Type Definitions
-
documentCursor(object)
-
Document cursor.
Parameters:
Name Type Description object
object the document in the current cursor position