Closed mahdiar-naufal-shyftplan closed 1 year ago
@mahdiar-naufal-shyftplan please see the docs regarding Nested Filters
- https://panko.dev/docs/associations#nested-filters
I see, that's doable for same filter on each array element. Thank you @yosiat!
Do they also able to handle the different filter on each element?
For an example in array index
0 i want to keep only the id
keys, but on array index 1 I want to keep only the id
and name
keys
Do they also able to handle the different filter on each element?
It's not possible as of today and it's something a bit complex to implement, to support filtering based json-paths. It's not something I plan to add support for, but maybe in the future I'll come up with extension point that will allow choose custom filtering logic.
Thanks!
Right now we are able to filter on singular serializer
But do you think we can apply that filter if we are using ArraySerializer?