-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.2.2
-
Component/s: MongoDB 3.2
-
Labels:
-
Empty show more show less
In version 2.2 the GridStore class became deprecated and it's advised in the API to use the new GridFSBucket instead.
The problem is that there is no option for writing buffers with promises like the old gridStore.write() function.
I tried to use bluebird's promisifyAll on the GridFSBucket class, but since the GridFSBucketWriteStream class is not exported, it doesn't work on it's functions, so functions like write and end are not getting promisified.
So the question is: How can I write buffers to the grid store with promises like the old GridStore class write function?