ducharmemp / mobstr

An ORM for Front End State Implementations
https://ducharmemp.github.io/mobstr/
MIT License
5 stars 0 forks source link

Plain object storage and shape description #1

Open ducharmemp opened 4 years ago

ducharmemp commented 4 years ago

Currently, only class-based model storage is possible. It would be nice to provide a wrapper function or helper to seamlessly insert and query plain javascript objects.

This would require figuring out a story for storing the "name" attribute of objects, and figuring out how to apply constraints and indexes to the object shapes themselves. I'd rather not go with something like prop-types for this if possible.

ducharmemp commented 4 years ago

This could be solved by testing compatibility with the serializr library