mardi 28 novembre 2017

Does Ember Data 2.16.0 support meta for findAll()?

In the Ember Guide for Ember Data 2.16.0 (http://ift.tt/2BjGp4M), it says that if we want to access the top level meta, we could do

 this.store.findAll('user').then((results) => {
      return {
        users: results,
        meta: results.get('meta')
 };

I've tried to do the same thing using Ember data 2.16.0. The results returned from findAll() does not contain meta, while results from query() does contain meta. This is consistent with older versions of Ember Data (http://ift.tt/1KmAC1T). Is such behavior changed in 2.16.0? If not, then the Ember guide might need a little touch up.




Aucun commentaire:

Enregistrer un commentaire