We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I filter using OR on multiple attributes?
The text was updated successfully, but these errors were encountered:
That is not supported. You can write a custom filter if you would like this functionality.
Sorry, something went wrong.
@lyschoening How would you represent the api syntax in order to support OR filters?
@lyschoening What about a list to represent OR expressions?
searching for author AND title: /books?where={"author": {"$contains": "John"}, "title": {"$contains": "Python"}}
/books?where={"author": {"$contains": "John"}, "title": {"$contains": "Python"}}
searching for author OR title: /books?where=[{"author": {"$contains": "John"}}, {"title": {"$contains": "Python"}}]
/books?where=[{"author": {"$contains": "John"}}, {"title": {"$contains": "Python"}}]
searching for author OR (title AND description) expressions: /books?where=[{"author": {"$contains": "John"}}, {"title": {"$contains": "Python"}, "description": {"$contains": "Python"}}]
/books?where=[{"author": {"$contains": "John"}}, {"title": {"$contains": "Python"}, "description": {"$contains": "Python"}}]
searching for (author AND title) OR (title AND description) expressions: /books?where=[{"author": {"$contains": "John"}, "title": {"$contains": "Python"}}, {"title": {"$contains": "Python"}, "description": {"$contains": "Python"}}]
/books?where=[{"author": {"$contains": "John"}, "title": {"$contains": "Python"}}, {"title": {"$contains": "Python"}, "description": {"$contains": "Python"}}]
No branches or pull requests
How can I filter using OR on multiple attributes?
The text was updated successfully, but these errors were encountered: