cloudcreativity / laravel-json-api

JSON API (jsonapi.org) package for Laravel applications.
http://laravel-json-api.readthedocs.io/en/latest/
Apache License 2.0
778 stars 109 forks source link

Sparse fieldsets not working with included relationships #629

Closed hayespdx closed 2 years ago

hayespdx commented 2 years ago

Sparse fieldset requests don't seem to be working with included relationships... /api/v1/images?include=places&fields[places]=name,slug returns all attributes for places, instead of just name and slug, as JSON:API specifies here.

lindyhopchris commented 2 years ago

@hayespdx can you confirm which package you are using - the legacy cloudcreativity/laravel-json-api package, or the newer laravel-json-api/laravel package?

hayespdx commented 2 years ago

I'm using the newer one, so this was a mistake! Sorry. I've opened the issue in the right place now, so feel free to close/delete this.

lindyhopchris commented 2 years ago

Thanks for opening in the other repo!