[DOCS-10486] Comment on: "manual/reference/method/db.collection.insertMany" Created: 04/Jul/17  Updated: 29/Oct/23  Resolved: 11/Oct/17

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Stennie Steneker (Inactive)
Resolution: Fixed Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Running mongoldb on a mac

Location: https://docs.mongodb.com/manual/reference/method/db.collection.insertMany/#db.collection.insertMany
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.2.5 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.5
Referrer: https://docs.mongodb.com/manual/reference/method/db.collection.insertOne/
Screen Resolution: 2560 x 1440


Participants:
Days since reply: 6 years, 18 weeks, 5 days ago

 Description   

I believe the "nInserted" value should have a value of 1 rather than 0, since the first insert for _id value of 13 succeeded. Also, I ran the same command on my local system and it has a value of 1 as expected.

Thanks



 Comments   
Comment by Githook User [ 06/Oct/17 ]

Author:

{'email': 'stennie@cpan.org', 'name': 'Stephen Steneker', 'username': 'stennie'}

Message: DOCS-10486: Add correct BulkWriteError output for db.products.insertMany() example
Branch: v3.4
https://github.com/mongodb/docs/commit/38de77d464bb38a48ed3742a5260c9daae27da9f

Comment by Githook User [ 06/Oct/17 ]

Author:

{'email': 'stennie@cpan.org', 'name': 'Stephen Steneker', 'username': 'stennie'}

Message: DOCS-10486: Add correct BulkWriteError output for db.products.insertMany() example
Branch: master
https://github.com/mongodb/docs/commit/d2a61b4a2c6a9eee6e623a35b43b606839cfc11c

Generated at Thu Feb 08 08:00:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.