Awesome. Does this simplify the whole retrieval and setting of relationship as they are loaded via the standard fetch mechanism?
A real pain point for us at with Backbone is transversing these relationships in JS. We end up doing redundant renders as related models finally come into memory.
This looks neat! But obvious question, how does this compare to the Backbone-relational library? One useful feature in Backbone-relational is the includeInJSON option, which can be used to either include/ignore or select a single attribute from the related model to be included in the toJSON output of the parent model. Would you have to manually do that here?
I am by no means an expert, but syntactically, I prefer how backbone-relational does things so that it looks and feels more like working with native Backbone objects, but I honestly don't know what's different about this otherwise.
4 comments
[ 2.5 ms ] story [ 22.9 ms ] threadA real pain point for us at with Backbone is transversing these relationships in JS. We end up doing redundant renders as related models finally come into memory.
I am by no means an expert, but syntactically, I prefer how backbone-relational does things so that it looks and feels more like working with native Backbone objects, but I honestly don't know what's different about this otherwise.