-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.0.43
-
Component/s: MongoDB 3.2
-
Empty show more show less
Collection.findOne is documented as returning an insertWriteOpResult object
http://mongodb.github.io/node-mongodb-native/2.0/api/Collection.html#~insertWriteOpResult
This object is expected to have an array property insertedIds with a single element.
The result object actually returned contains an insertedId property but no insertedIds property