Details
-
Bug
-
Resolution: Incomplete
-
Major - P3
-
None
-
3.0.4
-
None
-
ALL
-
Description
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' } }
|