- My model is
var UserLookup = DS.Model.extend({ ‘name’: DS.attr(‘string’) });
-
In My adapter I lookup as follows this.store.find(‘userLookup’).then(function(results){ }
-
The response from REST API is {“userLookups”:[{“id”:1,“name”:“xxx”},{“id”:2,“name”:“yyyy”}]}
-
Upon deserialization it fails with error Error: Assertion Failed: The response from a findAll must be an Array, not undefined
I made sure the model lookup and the key in JSON are both camelCased. If I rename the model with singleword, everything works.
Am I missing something in serializer that could cause this error?