-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return one object when specific their is a query param #406
Comments
|
It looks like you're returning a single object, but your query to the return {
data: db.devises.map(attrs => (
{type: 'devises', id: attrs.id, attributes: attrs }
))
}; |
Thanks @sirvine. It appears the errors was related to this issue. I've updated my ember data and change my BTW in your exemple you're still few elements? |
Thanks I've edited a little bit you answer |
Sorry, I had the devise library on my mind! |
//return this.store.findRecord('product', params.id); // NOT WORKING @sirvine sollution don't works with me. The error still showing on console. |
Hello
My json api endpoint looks like this
api/front/devices?users=:user_id
. For the moment in my config I have something like :If I set the
id: 1
and.find(1)
. I getTypeError: Ember.A(...).mapBy is not a function
The text was updated successfully, but these errors were encountered: