-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement
Description
Currently in Criteria
class we have the method
public Criteria orOperator(Criteria... criteria) {
BasicDBList bsonList = createCriteriaList(criteria);
return registerCriteriaChainElement(new Criteria("$or").is(bsonList));
}
This can be changed to
public Criteria orOperator(CriteriaDefinition... criteria) {
BasicDBList bsonList = createCriteriaList(criteria);
return registerCriteriaChainElement(new Criteria("$or").is(bsonList));
}
In this case it will be more flexible, and also it will be possible to have Criteria
and TextCriteria
mixed in $or operator.
johnbonds and antonio-mikulic
Metadata
Metadata
Assignees
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement