Uploaded image for project: 'Node Driver'
  1. Node Driver
  2. NODE-1693

Gridfs implementation using driver's deprecated function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.1.5
    • Fix Version/s: 3.1.7
    • Component/s: 3.0.2
    • Labels:
      None
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      (node:29079) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.
      at writeRemnant (/run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb/lib/gridfs-stream/upload.js:517:16)
      at /run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb/lib/gridfs-stream/upload.js:165:7
      at GridFSBucket.<anonymous> (/run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb/lib/gridfs-stream/upload.js:485:5)
      at Object.onceWrapper (events.js:273:13)
      at GridFSBucket.emit (events.js:187:15)
      at /run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb/lib/gridfs-stream/upload.js:64:20
      at /run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb/lib/gridfs-stream/upload.js:303:14
      at result (/run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb/lib/utils.js:414:17)
      at session.endSession (/run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb/lib/utils.js:401:11)
      at ClientSession.endSession (/run/media/sergio/RAZIEL/LynxChan/src/be/node_modules/mongodb-core/lib/sessions.js:129:41)

       

      I write files to gridfs using GridFSBucket.openUploadStream.write then end().

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                6 weeks, 5 days ago
                Date of 1st Reply: