If I have the following document:
db.sequence.findAndModify({
query:
,
update : {$inc : {"seq":1}},
fields:
,
upsert:true,
new:true})
Notice the fields:
{"_id":0}, part-
According to the documentation, this should prevent the id from being returned, however when I try and execute this command, I get this error:
Uncaught exception: findAndModifyFailed failed: "exception: assertion c:\\builds\laves\\mongo\\windows_64bit_v1.6\\mongo\\db
../bson/bsonbjbuilder.h:115"
- depends on
-
SERVER-1117 don't use DBDirectClient in findAndModify
- Closed
- is duplicated by
-
SERVER-3050 Suppressing output of '_id' from findAndModify causes exception.
- Closed
-
SERVER-3757 findAndModify can't handle {fields: {_id: 0}}
- Closed