FindOperation class

Constructors

FindOperation(DbCollection collection, {Map<String, dynamic>? filter, Map<String, Object>? sort, Map<String, Object>? projection, String? hint, Map<String, Object>? hintDocument, int? skip, int? limit, FindOptions? findOptions, Map<String, Object>? rawOptions})

Properties

canRetryRead bool
no setterinherited
collection DbCollection?
getter/setter pairinherited
command Map<String, Object>?
getter/setter pairinherited
connection Connection?
getter/setter pairinherited
db Db
getter/setter pairinherited
filter Map<String, dynamic>?
Optional. The query predicate. If unspecified, then all documents in the collection will match the predicate.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hint String?
Optional. Index specification. Specify either the index name as a string (hint field) or the index key pattern (hintDocument field). If specified, then the query system will only consider plans using the hinted index. starting in MongoDB 4.2, with the following exception, hint is required if the command includes the min and/or max fields; hint is not required with min and/or max if the filter is an equality condition on the _id field { _id:
getter/setter pair
hintDocument Map<String, Object>?
getter/setter pair
isAwaitData bool
no setter
isTailable bool
Returns a tailable cursor for a capped collections.
no setter
limit int?
Non-negative integer Optional. The maximum number of documents to return. If unspecified, then defaults to no limit. A limit of 0 is equivalent to setting no limit.
getter/setter pair
options Map<String, Object>
getter/setter pairinherited
projection Map<String, Object>?
Optional. The projection specification to determine which fields to include in the returned documents. See Projection and Projection Operators. find() operations on views do not support the following projection operators:
getter/setter pair
readPreference ReadPreference?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session Object?
getter/setter pairinherited
skip int?
Positive integer - Optional. Number of documents to skip. Defaults to 0.
getter/setter pair
sort Map<String, Object>?
Optional. The sort specification for the ordering of the results.
getter/setter pair

Methods

$buildCommand() Map<String, Object>
clearSession() → void
inherited
execute({bool skipStateCheck = false}) Future<Map<String, dynamic>>
inherited
executeDocument() Future<FindResult>
hasAspect(Aspect aspect) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processOptions(Map<String, dynamic> command) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited