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

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

    XMLWordPrintableJSON

Details

    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

            joseph.dougherty@mongodb.com Joseph Dougherty
            ian.fogelman@mongodb.com Ian Fogelman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 3 weeks ago