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

Query: OR condition #26

Closed
alecpetrosky opened this issue Jul 20, 2020 · 2 comments
Closed

Query: OR condition #26

alecpetrosky opened this issue Jul 20, 2020 · 2 comments

Comments

@alecpetrosky
Copy link

I know that Java's version of Objectbox supports OR condition in queries. Does Go version offers the same functionality at the moment?

@vaind
Copy link
Collaborator

vaind commented Jul 20, 2020

Yes, they're combined using objectbox.Any() to create a "condition group", see https://github.com/objectbox/objectbox-go/blob/master/test/query_test.go#L660

@alecpetrosky
Copy link
Author

Thank you very much for the clarification!

@vaind vaind closed this as completed Jul 20, 2020
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

2 participants