Everyplay / serverbone

Backbone node.js additions to serve backbone collections/models over express
MIT License
5 stars 5 forks source link

Generalise fetching of model/collection in resource #18

Closed kosmikko closed 9 years ago

kosmikko commented 9 years ago

Currently the way to specify what resource should fetch is by overriding _addParameterHandler or buildCollection. This should be generalised so that there is no need to override anything on the resource, but the needed options for fetch/fetchAll should be parsed based on projection options, thus model/collection should define what relations it needs and these can be overridden by query params.