> db.messages.aggregate([ ], { cursor: { foo: 1} })
|
assert: command failed: {
|
"errmsg" : "exception: cursor object can't contain fields other than batchSize",
|
"code" : 16955,
|
"ok" : 0
|
} : aggregate with cursor failed
|
Error: Printing Stack Trace
|
at printStackTrace (src/mongo/shell/utils.js:38:15)
|
at doassert (src/mongo/shell/assert.js:6:5)
|
at Function.assert.commandWorked (src/mongo/shell/assert.js:238:5)
|
at DBCollection.aggregate (src/mongo/shell/collection.js:907:12)
|
at (shell):1:13
|
2013-10-16T13:46:07.155-0700 command failed: {
|
"errmsg" : "exception: cursor object can't contain fields other than batchSize",
|
"code" : 16955,
|
"ok" : 0
|
} : aggregate with cursor failed at src/mongo/shell/assert.js:7
|