Closed mrzorg closed 10 years ago
I've run into the same problem. If you create an entry with a root property, if you need to check for its existence, you can't use GridFS's exist function. It's a small re-write, but still a bit of a hassle.
Thanks for the report. This is a duplicate issue of #50 (where a fix is suggested), so i'm closing this one.
You can insert: if( options.root ) return this.mongo.GridStore.exist(this.db, _id, options.root, callback);
before: return this.mongo.GridStore.exist(this.db, _id, callback);