You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enables standard Promise based error handling to detect errors during collection creation (rather than having to use the callbacks). If I understand correctly, this is an API inconsistency with MongoDB.
Db.createCollection()
should return aPromise
yieldingCollection
like the mongo node API does.From the example at https://mongodb.github.io/node-mongodb-native/2.2/api/Db.html#createCollection :
This enables standard
Promise
based error handling to detect errors during collection creation (rather than having to use the callbacks). If I understand correctly, this is an API inconsistency with MongoDB.The following fails when I expect it to work:
The text was updated successfully, but these errors were encountered: