-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
type: enhancementA general enhancementA general enhancement
Description
Currently the only way to create an $or
only query is counter intuitive and leads people to creating $and
combined criterions to a single element $or
as outlined below.
query(where("title").is(...).orOperator(where("content").is(...))
{
"title": ...,
"$or": [
{
"content": ...
}
]
}
The correct, rather cumbersome usage would be as follows:
query(new Criteria().orOperator(where("title").is(...), where("content").is(...)))
Introducing a static or(Critieria... criterions)
method would allow for simpler usage
query(or(where("title").is(...), where("content").is(...)))
almogtavor
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement