Struct AggregateOptions
Represents available options for an aggregate call
struct AggregateOptions
;
Fields
Name | Type | Description |
---|---|---|
allowDiskUse
|
std | Enables writing to temporary files. When set to true, aggregation operations can write data to the tmp subdirectory in the dbPath directory. |
bypassDocumentValidation
|
std | If true, allows the write to opt-out of document level validation. This only applies when the $out or $merge stage is specified. |
collation
|
std | Specifies a collation. |
comment
|
std | Users can specify an arbitrary string to help trace the operation through the database profiler, currentOp, and logs. |
cursor
|
CursorInitArguments | |
explain
|
std | |
hint
|
std | The index to use for the aggregation. The index is on the initial collection / view against which the aggregation is run. |
maxTimeMS
|
std | Specifies a time limit in milliseconds for processing operations on a cursor. If you do not specify a value for maxTimeMS, operations will not time out. |
readConcern
|
std | Specifies the read concern. Only compatible with a write stage. (e.g.
$out , $merge )
|
Properties
Name | Type | Description |
---|---|---|
batchSize [get]
|
inout(std | Specifies the initial batch size for the cursor. |
See Also
https://docs.mongodb.com/manual/reference/method/db.collection.aggregate/