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

Include data key when lazy-loaded relationships are included #425

Open
wants to merge 34 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ee76e0c
bump up version to 1.5
shishirmk Nov 3, 2018
fdcaed6
Merge pull request #342 from Netflix/release-1.5
shishirmk Nov 3, 2018
a160d67
Fix Documentation of Meta Per Resource
manojmj92 Nov 15, 2018
e0228da
Add documentation on how to use helper methods in serializers
manojmj92 Nov 14, 2018
4b1c2fb
Include `data` key when lazy-loaded relationships are specified with …
dpikt Jun 10, 2019
3df917f
Update README.md
Jun 11, 2019
d64b1b5
Test against Ruby 2.6 and fix Travis (#3)
krzysiek1507 Oct 4, 2019
d8e69a2
Merge branch 'dev' into include-lazy-loaded-relationships
dpikt Oct 4, 2019
1373eb4
Compute remaining_items once
krzysiek1507 May 2, 2019
2b6c816
Allow relationship links to be declared as object method (#2)
jopotts Oct 4, 2019
9ec89d4
Map split include_item in-place
krzysiek1507 May 2, 2019
dce1faf
Move transforms mapping to constant
krzysiek1507 May 2, 2019
0dc332d
Create CHANGELOG.md
kpheasey Oct 4, 2019
9e83c1e
Highlight that this is for JSON:API spec only
Mar 21, 2019
f0142d9
Fix formatting of `set_id` example in README
thisismydesign Mar 4, 2019
209c925
Fix typo in README
caristomenopoulos Feb 22, 2019
021db27
Update Readme
Feb 19, 2019
1a407c0
[#365] Support frozen array in option
dapi Dec 21, 2018
21ae4aa
Allow fieldsets to specify no attributes/relationships
Oct 8, 2018
8d8e5c3
Fix error on defining anonymous serializer class, fixes #353
daniel-illi Nov 22, 2018
267b706
validate all include items instead of just the first
Jan 4, 2019
5767664
add specs for multiple include options
Jan 4, 2019
b9a86a0
pass array of unique movies to serializer
sdsd08013 Dec 20, 2018
e68dbee
update document/use let statement
sdsd08013 Jan 21, 2019
b24af1f
Test against Ruby 2.6 and fix Travis (#3)
krzysiek1507 Oct 4, 2019
f04abfd
Compute remaining_items once
krzysiek1507 May 2, 2019
83e99b2
Allow relationship links to be declared as object method (#2)
jopotts Oct 4, 2019
fd17386
Map split include_item in-place
krzysiek1507 May 2, 2019
e4c65a2
Move transforms mapping to constant
krzysiek1507 May 2, 2019
5f86298
Merge remote-tracking branch 'origin/dev' into dev
kpheasey Oct 4, 2019
44a896d
Take items of original array instead of dup and delete
krzysiek1507 May 2, 2019
f2a1934
Use each_with_object instead of Hash[map]
krzysiek1507 May 2, 2019
37206dd
Update CHANGELOG.md
kpheasey Oct 4, 2019
7270a9a
Merge branch 'dev' into include-lazy-loaded-relationships
kpheasey Oct 8, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Documentation of Meta Per Resource
Some part of the documentation for this got removed during last merge, so fixing it.
  • Loading branch information
manojmj92 authored and shishirmk committed Mar 29, 2019
commit a160d6746f2f35e157b42cd6d797a74bed1405f0
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,12 @@ This will create a `self` reference for the relationship, and a `related` link f
### Meta Per Resource

For every resource in the collection, you can include a meta object containing non-standard meta-information about a resource that can not be represented as an attribute or relationship.


```ruby
class MovieSerializer
include FastJsonapi::ObjectSerializer

meta do |movie|
{
years_since_release: Date.current.year - movie.year
Expand Down