json-api icon indicating copy to clipboard operation
json-api copied to clipboard

Default include relationship

Open wychoong opened this issue 2 years ago • 2 comments

How to default a relationship without requesting?

this package doesn’t seem to return default relationship even after setup like spatie’s doc https://spatie.be/docs/laravel-query-builder/v5/features/including-relationships#content-default-includes

An endpoint MAY return resources related to the primary data by default. https://jsonapi.org/format/#fetching-includes

wychoong avatar Apr 14 '23 04:04 wychoong

This has already been requested before and @timacdonald already has a plan for this.

juliomotol avatar Apr 27 '23 02:04 juliomotol