rekord
rekord copied to clipboard
A javascript REST ORM that is offline and real-time capable
The model is given an object/collection of objects from a remote source. Typically the parent model has the discriminator to know how to parse the input into a model. However...
When a polymorphic relationship is being initialized and it comes to a given object to which there is and ID and discriminator on the parent object, if those properties were...
``` Rekord.addDecoder('boolean', {strict: Boolean}, function(value, params) { if ( params.strict ) ... return value; }); var Model = Rekord({ decodings: { property: 'boolean(strict:true)', } }); ``` You can also pipe...
For example: listenForModelAdded looks at this.model when it might not even be loaded yet. We should wait.
If you have a parent and two dependents - all saved at the same time - and the parent fails (400) the dependents can get stuck in a try again...
- Add a comparator expression to be allowed for the $group subcollection - Add $key to the group unless keyless is truthy - Add comparatorOnce flags to collection returned and...
To make code usable in browser and node - some functionality will have to be modified. Functions that are synchronous in browser may be asynchronous in node (validation for example).