diff options
author | Ruoxin Xu <ruoxin.xu@mongodb.com> | 2021-01-13 23:19:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-20 13:29:03 +0000 |
commit | 9686cd9358b744877d43a2d7b71fdb91e40d3de9 (patch) | |
tree | 1277e37a62f3994335c537b9594049e07809440d /src/mongo/db/pipeline/aggregate_command.idl | |
parent | 191aa3556e3fecd6cec1336ec346911109dc5223 (diff) | |
download | mongo-9686cd9358b744877d43a2d7b71fdb91e40d3de9.tar.gz |
SERVER-53311 Add a 'struct' type to represent 'cursor' object in aggregate command input IDL
Diffstat (limited to 'src/mongo/db/pipeline/aggregate_command.idl')
-rw-r--r-- | src/mongo/db/pipeline/aggregate_command.idl | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/mongo/db/pipeline/aggregate_command.idl b/src/mongo/db/pipeline/aggregate_command.idl index a242014f1b9..926ceb42792 100644 --- a/src/mongo/db/pipeline/aggregate_command.idl +++ b/src/mongo/db/pipeline/aggregate_command.idl @@ -46,19 +46,19 @@ types: description: "An array of objects specifying the aggregation pipeline." cpp_type: "std::vector<mongo::BSONObj>" deserializer: ::mongo::parsePipelineFromBSON - batchSize: + aggregateCursor: bson_serialization_type: any - description: "An int representing the cursor batch size." - cpp_type: "std::int64_t" - serializer: ::mongo::serializeBatchSizeToBSON - deserializer: ::mongo::parseBatchSizeFromBSON + description: "A cursor type representing the cursor field of aggregate command." + cpp_type: SimpleCursorOptions + serializer: ::mongo::serializeAggregateCursorToBSON + deserializer: ::mongo::parseAggregateCursorFromBSON explainVerbosity: bson_serialization_type: any description: "The Verbosity value representing explain verbosity." cpp_type: "mongo::ExplainOptions::Verbosity" serializer: ::mongo::serializeExplainToBSON deserializer: ::mongo::parseExplainModeFromBSON - + commands: aggregate: description: "Represents the user-supplied options to the aggregate command." @@ -80,10 +80,8 @@ commands: type: optionalBool cursor: description: "To indicate a cursor with a non-default batch size." - cpp_name: "batchSize" - type: batchSize - default: 101 - validator: { gte: 0 } + type: aggregateCursor + default: SimpleCursorOptions() maxTimeMS: description: "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." type: safeInt64 |