amark / mongous

Simple MongoDB driver for Node.js with jQuery like syntax.
MIT License
246 stars 30 forks source link

Is it posible to get a callback replay on a save/remove/insert operation? #42

Open ronen1malka opened 9 years ago

ronen1malka commented 9 years ago

Is it posible to have a callback/promise to test a result? If no, any workaround? Using getlasterror is not good enough fo async call.

amark commented 9 years ago

@ronen1malka currently I was assuming getlasterror was how this was done in all the other drivers. Do you know what they do instead?

I'm currently devoting all my attention to my own (better) database, http://github.com/amark/gun which is like a free Open Source Firebase. You should check it out! If you still need MongoDB for some reason, would you be interested in contributing to this library since I won't be able to spend as much time on it anymore?

Sorry for the delayed response.