whenever I try to use gfs.createReadStream I keep getting this error
...\node_modules\gridfs-stream\lib\readstream.js:68
this._store = new grid.mongo.GridStore(grid.db, this.id || new grid.mongo.ObjectID(), this.name, this.mode, options);
^
TypeError: grid.mongo.ObjectID is not a constructor
I don't know where's the mistake I made I tried to search everywhere but I'm not found any solution here's my code
whenever I try to use
gfs.createReadStream
I keep getting this errorI don't know where's the mistake I made I tried to search everywhere but I'm not found any solution here's my code
if you are asking what's inside the
'../db/connection'
here's the codeI hope to found a solution for that