-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
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.
-
Empty show more show less
(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().