Sparse fieldsets not working with included relationships
hayespdx opened this issue · 3 comments
hayespdx commented
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
@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
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
Thanks for opening in the other repo!