Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

second and third level filtering #58

Open
tejastechie opened this issue Jan 15, 2020 · 2 comments
Open

second and third level filtering #58

tejastechie opened this issue Jan 15, 2020 · 2 comments

Comments

@tejastechie
Copy link

tejastechie commented Jan 15, 2020

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

@rijan0101
Copy link

@tejastechie You can create custom filter for this.

@VetonMuhaxhiri
Copy link

@tejastechie You can create custom filter for this.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants