Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
*Location*: https://docs.mongodb.org/manual/reference/method/db.collection.insertOne/#db.collection.insertOne
*User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
*Referrer*: https://docs.mongodb.org/manual/core/write-operations-introduction/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/method/db.collection.insertOne
*Location*: https://docs.mongodb.org/manual/reference/method/db.collection.insertOne/#db.collection.insertOne *User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 *Referrer*: https://docs.mongodb.org/manual/core/write-operations-introduction/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: reference/method/db.collection.insertOne
Description
Hello world.
There seems to be a minor oversight in the following example:
db.products.insertOne(
);
The operation can not return an ObjectId value.
'insertedId' value is supposed to be 10.