bruno icon indicating copy to clipboard operation
bruno copied to clipboard

second and third level filtering

Open tejastechie opened this issue 5 years ago • 2 comments

Hello,

How can I do the second and third level for filtering with 2D and 3D array. Aworking example will be highly appreciated.

e.g. consider my array

"books":[
{
"id":1, "author_id":1, "title":"How to save the world from evil", "pages":100, "author":{
"id":1, "name":"Optimus Prime" "author_details":{
"id":1, "dept":"Literature" } } },

I want to search by books.author.name && books.author.author_details.dept What should be changes in the controller? How should be the API call?

Thanks

tejastechie avatar Jan 15 '20 14:01 tejastechie

@tejastechie You can create custom filter for this.

rijan0101 avatar Jan 16 '20 10:01 rijan0101

@tejastechie You can create custom filter for this.

Hi, can you show an example of third level filtering.

VetonMuhaxhiri avatar Jul 16 '20 15:07 VetonMuhaxhiri