You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mongodb db.collection.aggregate accepts 2 parameters: aggregation pipeline, and options. I need to set {allowDiskUse: true} for my aggregation pipelines, but as far as I can tell from the source and the documentation, MongoCollection.aggregate accepts only aggregation pipeline, and there's no way to pass the second argument.
Is there a way to pass the options argument to the MongoCollection.aggregate?
The text was updated successfully, but these errors were encountered:
fixvibe-d#2036, fixvibe-d#1718
cursors now only need the DocType as template argument, the find specific arguments are now in the constructor. Aggregate now uses Cursors and find was altered to the new API. There is a deprecated compatibility alias which will work in most cases (except if only Q was given and differs from what R should be, which shouldn't even be done anyway)
The new public API for aggregate is a lot more like the shell now, but still supports the old way
Mongodb
db.collection.aggregate
accepts 2 parameters: aggregation pipeline, and options. I need to set{allowDiskUse: true}
for my aggregation pipelines, but as far as I can tell from the source and the documentation,MongoCollection.aggregate
accepts only aggregation pipeline, and there's no way to pass the second argument.Is there a way to pass the
options
argument to theMongoCollection.aggregate
?The text was updated successfully, but these errors were encountered: