mardi 28 juillet 2015

Ember not returing a DSRecordArray on find(model,id)

I am using a REST adapter and serializer to pull in data from this.store.find(modelName, id)

In my serializer, I am successfully attaining an array from my REST api and extracting it into the store.

Why does does Ember think that if you gave it an ID in the find() parameters, that it must be a singular object?

Giving it query parameters returns collections of records however my REST API does not support that. Is there a way to set the result returned to become a record array? --- while not losing ember data cache functionality?

I would like the record array to be cached with the key id i've given in the find()




Aucun commentaire:

Enregistrer un commentaire