I don't know if the title of the question is formed well enough. But essentially I would like to be able to do something like this from front end :
(name="abc" OR name="xyz") AND (status="active" OR (status="available" AND age=30))
I want to the user to send this string. I will parse it in backend and form a query.
I have looked at this answer and this but couldn't figure out how to solve the parenthesis here.
I am thinking about using a stack (the way we solve infix expressions) to do this, but don't want to go that long route unless I am sure there isn't another/ready solution available. If someone can do this with that method, would be great too.