Ember 2.5 QueryRecord Return's All Records Instead of Only One -


i having tough time building test ember app right way. when hit main index page, route succesfully grabs 7 records database, should , sticks them in store. however, when go single post link-to helper , use queryrecord, still returns 7 records. have tried , without reloadrecord , tried filter key.

** standard disclaimer, always, stupid!

import ember 'ember';  export default ember.route.extend({   model(params) {     console.log(params);  //20160422-tutorial     let post = this.store.queryrecord('post', {slug: params.slug}, { reload: true });     console.log(post);  //shows 7 records here , in ember inspector.     return post;   } }); 


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Apache Thrift Tutorial Error -