devour-js / devour-client

Don't just consume your JSON API, Devour it...
https://www.npmjs.com/package/devour-client
ISC License
429 stars 90 forks source link

Keep type and id of non included relations #223

Closed tijn closed 3 years ago

tijn commented 3 years ago

Priority

Is this PR blocking your next action? It is blocking @unicrus.

What Changed & Why

Return type and id for non-included relations instead of just the id. The id alone is most probably not valid data and having the type and id is incredibly useful for fetching more information from an API.

This is, of course, a breaking change.

People

Mention people who would be interested in the changeset: @unicrus & @JaZo Engineer(s) who wrote the old version: @graemetait