mongojs icon indicating copy to clipboard operation
mongojs copied to clipboard

whats the difference with official mongoJS drivers?

Open dcsan opened this issue 9 years ago • 3 comments

they now have 2.1 + drivers that support promises etc. with so many differnet options it would help to know what the key points are.

dcsan avatar Feb 28 '16 08:02 dcsan

The key point of mongojs is that it tries to follow the mongodb cli interface as much as possible :heavy_plus_sign: handling connection management for you.

saintedlama avatar Feb 29 '16 16:02 saintedlama

One notable difference is that the "promise-if-no-callback" feature is not supported. (at least not for cursors)

Mongojs requires callbacks for - near as I can tell - Cursor.prototype.*()

Earl-Brown avatar Sep 06 '16 19:09 Earl-Brown

Although, the behavior of providing a promise when there's no callback is proposed in this PR

https://github.com/mafintosh/mongojs/pull/368

countable avatar Dec 27 '18 23:12 countable