LokiJS vs Mongoose: What are the differences?
LokiJS can be classified as a tool in the "In-Memory Databases" category, while Mongoose is grouped under "Object Document Mapper (ODM)".
LokiJS and Mongoose are both open source tools. Mongoose with 19K GitHub stars and 2.63K forks on GitHub appears to be more popular than LokiJS with 4.95K GitHub stars and 389 GitHub forks.
What is LokiJS?
What is Mongoose?
Need advice about which tool to choose?Ask the StackShare community!
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using LokiJS?
What companies use LokiJS?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
I inherited a stack where Mongoose is used in the database layer.
It's been several months and it's still the single highest source of daily WT*s in my backend development. The API is full of irregularities and the design is a poor mix of object-orientation and stateful objects with a lot implicit behavior. Mongoose made the choices of taking the worst parts of ORMs and using them in a context where the benefits of ORMs don't apply. The only reason I'm keeping it is its handy
.populate() feature. Expect bad surprises!