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
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