Create a links object on each resource
Add the ability to access resource links through doc.data[0].links in addition to doc.links[doc.data[0]]. This also makes links work when data is a single resource instead of an array.
Neat! Can you add documentation for it in the README please?
Added!
On Wed, Dec 18, 2019 at 4:31 PM Thaddée Tyl [email protected] wrote:
Neat! Can you add documentation for it in the README please?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/trainline/json-api-vanilla/pull/6?email_source=notifications&email_token=AAI2ID7LFP74IXVOTIUEUTLQZKXEZA5CNFSM4IITK4TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHH3BPA#issuecomment-567259324, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI2IDYQUIJUSUJ6ZCKGNCTQZKXEZANCNFSM4IITK4TA .