denali-js / core

An opinionated, ORM agnostic framework for building robust JSON APIs in Node
http://denalijs.org
Apache License 2.0
73 stars 14 forks source link

Dirty state tracking support for models #228

Open davewasmer opened 7 years ago

davewasmer commented 7 years ago

Should we support dirty state tracking for models?

My inclination is that this is too much "ORM" in Denali - many ORMs will have this functionality baked in. I don't think we should roll our own on top of it.

It might be worthwhile to survey the ORM landscape and see if many support dirty tracking. If so, perhaps we could support a unified interface to it, but still let the underlying ORM do the tracking itself.

This blocks https://github.com/denali-js/denali-auth/issues/3.

davewasmer commented 7 years ago

If anyone wants to jump in here, the most helpful place to start would be a quick summary of the major Node ORM's dirty tracking APIs.