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

Gridfs implementation using driver's deprecated function

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.1.7
    • Affects Version/s: 3.1.5
    • Component/s: None
    • Environment:
      Node.js 10.11.0 on centOS 7, actuall using 3.1.6 version of the driver, but that's not listed.

      (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().

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            stephenlynx Stephen Lynx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: