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 response are both camelCased. If I rename the model with a single word, everything works.
Am I missing something in serializer that could cause this error?
App.UserLookup = ...? Because I don't think it's going to work if you register it as a global.{ "user_lookups": [...] }as JSON, i.e. use snake case instead of camel case?