[DOCS-14973] [manual] Update deprecated db.collection.save() method in docs corpus Created: 08/Dec/21  Updated: 13/Nov/23  Due: 21/Jan/23  Resolved: 18/Jan/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.2.0, 4.4, 5.0.0, 5.1.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Bug Priority: Major - P3
Reporter: Ian Fogelman Assignee: Joseph Dougherty
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 3 weeks ago
Epic Link: DOCSP-11701

 Description   

.save has been deprecated since 4.2 but is still in our docs corpus, this should be updated with one of the following:

  • insertOne
  • insertMany
  • updateOne
  • updateMany

 

"Collection.save() is deprecated. Use insertOne, insertMany, updateOne, or updateMany."

Currently affecting (17) pages.

Example : https://docs.mongodb.com/manual/core/geospatial-indexes/#multi-location-documents-for-2d-indexes

 



 Comments   
Comment by Githook User [ 18/Jan/23 ]

Author:

{'name': 'jmd-mongo', 'email': '73852296+jmd-mongo@users.noreply.github.com', 'username': 'jmd-mongo'}

Message: DOCS-14973 replace save() with insertOne() or replaceOne() as appropriate (#2392)
Branch: master
https://github.com/10gen/docs-mongodb-internal/commit/08e800f56f6f44b44a625756fc1c3c64061055b9

Comment by Jeffrey Allen [ 09/Dec/21 ]

Fyi ian.fogelman I'm triaging this and putting it in the bugfix backlog. Feel free to adjust if you want it somewhere else.

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