Open MotorCityCobra opened 5 years ago
try using methodoverride npm package
try using methodoverride npm package
That's not very descriptive. I have the same problem, I got errors:
MongoError: read preference must be a ReadPreference instance
Using mongoose 5+
I worked with gfs.remove and it worked fine for me. @manjia does it show an error or it doesn't change anything?
If it will help someone, I deleted using this
const bucket = new mongodb.GridFSBucket(conn.db, { bucketName: 'uploads' });
bucket.delete(ObjectId("60edece5e06275bf0463aaf3"));
'uploads' is the name of my bucket. This command is not getting it done.