You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm finding the need to send query params requesting a single resource. With the API I'm working with, I can ask it to send relationships in the response with ?relationships=1. I can do this with DS.findAll() but not DS.find().
OK. Now I feel stupid. Adding { params: { relationships: 1 } } to the options parameter worked. That's good enough for me. It would be nice if this were documented somewhere a little more clearly. I can do a pull request to the DS.find() doc if that's where you think it should go.
I'm finding the need to send query params requesting a single resource. With the API I'm working with, I can ask it to send relationships in the response with
?relationships=1
. I can do this withDS.findAll()
but notDS.find()
.I'm thinking it would look something like
Does this seem like a good feature? It would potentially break the current API.
The text was updated successfully, but these errors were encountered: