-
Type: Bug
-
Resolution: Incomplete
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.4
-
Component/s: Write Ops
-
Labels:None
-
ALL
-
We run the following code on a replica set:
upsert : options.upsert || false,
multi : false,
w : 1,
wtimeout: 5000
We received the following error:
{ [MongoError: Modifiers operate on fields but we found a String instead. For example: {$mod: {<field>: ...}} not {$set: "[object Object]"}] name: 'MongoError', code: 9, err: 'Modifiers operate on fields but we found a String instead. For example: {$mod: {<field>: ...}} not {$set: "[object Object]"}', body: { controller: 'StorageMongo', action: 'FindOneAndUpdate.Update' } }