ember.js - ember: query using non standard id in router model hook? -


Is there a better way to do this?

Import 'amber' from amber; Export Default Ember.Route.extend ({Model: Functions} {// / There should be a better way to do this! Back to this Store.find ('version', {server_id: parseInt (params.edition_id)} ) .then (function (e) {return e.get ('firstObject')});}}};

I want to find a model from the store using a query, and So I end up with an array instead of just one model ...

Many thanks.


Comments