-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.4.4
-
Component/s: BSON
-
Labels:None
-
Environment:Linux
There is a problem between the nodejs driver and the go driver with $addToSet, why would they be different when the company mongo is making them?
The nodejs driver will replace the field in the document, the go driver will not.
For example if you are using $addToSet on a field that has an existing string... the nodejs driver would replace it with an array and the go driver returns an error.
That makes anyone who writes in node first have a problem with the interpretation of how the driver works. Why would they be different?
- duplicates
-
GODRIVER-1818 BSON encoding, passing single string to $addToSet field
- Closed