Describe the bug
Querying by sparse fieldsets is not behaving as expected. When trying to specify multiple fields for one resource, it does not work (all fields are returned). It works if you specify the multiple fields for the one resource across multiple query params.
- does not work, but should: [resource1]=field1,field2,field3
- workaround: [resource1]=field1&[resource1]=field2&[resource1]=field3
To Reproduce
Use the fields parameter with useAll or useDataGridState, it will structure the query in the jsonapi format, but the request will return all fields regardless.
Expected behavior
Using the jsonapi URL format returns only specified fields.
Describe the bug
Querying by sparse fieldsets is not behaving as expected. When trying to specify multiple fields for one resource, it does not work (all fields are returned). It works if you specify the multiple fields for the one resource across multiple query params.
To Reproduce
Use the fields parameter with
useAlloruseDataGridState, it will structure the query in the jsonapi format, but the request will return all fields regardless.Expected behavior
Using the jsonapi URL format returns only specified fields.