Skip to content

Send query params with DS.find() #123

Closed
@TimothyKrell

Description

@TimothyKrell

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().

I'm thinking it would look something like

DS.find('book', 1, { relationships: 1 }, { bypassCache: true });

Does this seem like a good feature? It would potentially break the current API.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions