Anywhere
collection.findOne([selector], [options])
Finds the first document that matches the selector, as ordered by sort and skip options.
Arguments
- selector Mongo Selector, Object ID, or String
-
A query describing the documents to find
Options
- sort Mongo Sort Specifier
-
Sort order (default: natural order)
- skip Number
-
Number of results to skip at the beginning
- fields Mongo Field Specifier
-
Dictionary of fields to return or exclude.
- reactive Boolean
-
(Client only) Default true; pass false to disable reactivity
- transform Function
-
Overrides
transform
on theCollection
for this cursor. Passnull
to disable transformation.
Please login to continue.