I have a findRecord method with the json api convention that looks like this:
this.store.findRecord('book', 2).then((book) =>{
console.log(book.get('name'));
});
The console log is always printing undefined
, but the name value is actually beeing send. book
only returns the id
and nothing more. I tested with Ember.$ ajax and I got everything. The model structure is also correct.
Is this the normal behavior? This is driving me mad for hours... Thanks.
Aucun commentaire:
Enregistrer un commentaire