still maintained?
Hi, I like the lib, but not sure if it's still maintained? How does mongo-model compare to https://github.com/alexeypetrushin/mongo-lite?
Cheers, Tadek
Hi, I'm not decided it yet, it's an open question.
Right now in my own project I need:
- models that should be usable on both client and server and with multiple persistence providers (mongo + redis + REST).
- models should be simple and small.
So, I cut this project in half:
- part of mongodb-persistence logic goes into
mongo-lite. - model has been greatly simplified and goes into
passive-model.
There's one problem though - the callbacks. Callbacks of model (before / after save / update / ...) is tightly coupled with persistence provider.
It's very hard to make it abstract (callbacks by itself is the most complicated part of model), so I discarded it it, passive-model doesn't have callbacks.
This issue prevents me from completely replacing mongo-model with mong-lite + passive-model.
So, current state:
- I'm fixing bugs in this repo.
mongo-liteandpassive-model- things I'm actively working on.mongo-liteseems to be ready for usage, `passive-model' needs some final polishing + docs. But they don't have callbacks , I had to sacrifice it to gain compatibility with multiple persistency providers and simplicity.
@alexeypetrushin thanks for detailed answer! Will look into mongo-lite and passive-model in that case !
Be prepared though that passive-model isn't finished, there are couple of things that should be done there. I'll plan to do it in 2-3 weeks.