Skip to content
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

[DOC] Update descriptions of findRecord() and findAll() #4581

Merged
merged 2 commits into from
Oct 18, 2016

Conversation

MarkMT
Copy link
Contributor

@MarkMT MarkMT commented Oct 17, 2016

This commit adds documentation on the use of the include query parameter in DS.Store methods findRecord() and findAll(). This feature allows records of models related to those requested to be retrieved from JSON API compliant server in a single request. This capability was added in #3976 but is not currently documented.

This commit adds documentation on the use of the `include` query parameter in `DS.Store` methods `findRecord()` and `findAll()`. This feature allows records of models related to those requested to be retrieved from JSON API compliant server in a single request. This capability was added in emberjs#3976 but is not currently documented.
@bmac
Copy link
Member

bmac commented Oct 18, 2016

Thanks @MarkMT. Overall this is looking good 👍.

comments in the same request:

```
// app/routes/post.js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of writing the filename in a comment you can write it after the 3 back ticks and it will get rendered as a header for the code block.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I thought that was the case, but initially I was using https://github.com/emberjs/api to render the edits locally and it seems for some reason that that doesn't actually support that behavior, so I put the filenames in the comment instead. I've switched to https://github.com/emberjs/website for local rendering and it's now working as advertised.

@bmac bmac merged commit 5c99faa into emberjs:master Oct 18, 2016
@bmac
Copy link
Member

bmac commented Oct 18, 2016

Thanks @MarkMT.

@MarkMT MarkMT deleted the patch-1 branch October 18, 2016 16:51
homu added a commit to emberjs/guides that referenced this pull request Nov 1, 2016
Explain retrieval of related records

This commit adds a sub-section to Models: Relationships to explain how to retrieve records from related models using the JSON API 'include' query parameter. This reflects recent changes to the `DS.Store` API documented in emberjs/data#4581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants