A naive mongodb driver that simulates a mongodb in-memory server.
Goals & features
This library is a naive (array based) mongodb implementation. It does as little as possible to get the job done (meaning no optimizations whatsoever).
It implements nearly all collection's methods of the mongodb native driver, thus it can be used along mongoose as well.
- Aggregation (Not all options)
- Queries (Most conditions).
- Updates (All operations but not all options).
- Insertions (Not all options).
It does not support:
This library is not checking paramenters YET, a misplaced parameter might result in an error.
const MongoClient = ;MongoClient
Why would you use this?
- Unit testing
- Mocking an API
Is it performant?
This library isn't supposed to be performant, but a simple mongodb implementation to make quick and dirty queries.
The version number matches the MAJOR.MINOR version of mongo driver.
The query engine is based in mingo.