Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14973

[manual] Update deprecated db.collection.save() method in docs corpus

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • None
    • 4.2.0, 4.4, 5.0.0, 5.1.0
    • manual, Server
    • None

    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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ian.fogelman@mongodb.com Ian Fogelman
            Jeffrey Allen Jeffrey Allen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              23 weeks, 2 days ago