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
Support filter nested collection #216
Comments
This is the only limitation I have faced so-far in the project. Please support :) |
Hey @MichaelKoch11 @ghulamemustafa I think that this is out of the scope of the project. The goal is to apply filtering criteria to a collection (e.g. car table) in order to filter the elements of that specific collection (as it is with SQL queries). In this specific case you could make a request to the employee API: If you have an idea on how we could achieve your requirement, I would be glad to hear that. Also please do note that there are other pending issues, you can always sponsor me so that I can dedicate more time to feature requests. Thank you. |
@torshid I am a little confused here on how is this out of the scope as we're unable to filter |
@ghulamemustafa I think that there is a misunderstanding here. @MichaelKoch11 wanted to filter employees of companies, not companies based on employees. As I said earlier, the search query Michael shared is valid and correctly filters companies based on employees, but it does not apply a second filter to the employee collection (which is what he requested: get companies according to some criteria and filter the employees of these companies based on other criteria). It would be nice if you can provide your search query and tell what you are trying to achieve exactly. Thanks. |
I just realized that the confusion was on my side (my bad). I just want to filter the companies based on the employees attributes. |
@ghulamemustafa Closing the issue as the original request is out of scope. |
It would be a nice feature or I doest find it yet to filter nested collection.
Like in the Live Example to filter Company with
(id < 10 and employees.maritalStatus: "unknown")
curl -X 'GET'
'https://spring-filter.herokuapp.com/company?filter=id%20%3C%2010%20and%20employees.maritalStatus%3A%22unknown%22'
-H 'accept: /'
Expected Output
In my own example with one Entity and 3 Elements in nested collection i got 3 times the same response
The text was updated successfully, but these errors were encountered: