File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,26 @@ enum CompositeOperator {
34
34
}
35
35
36
36
/**
37
- * Returns an AND composite filter.
37
+ * And filters are composed of many other filters and when they are applied
38
+ * then query results are only returned when they pass through all these other
39
+ * filters.
40
+ *
41
+ * @param {EntityFilter[] } filters The list of filters that make up the AND filter.
42
+ * @returns {CompositeFilter } A composite AND filter.
38
43
*
39
- * @param {EntityFilter[] } filters The filters that make up the AND filter.
40
44
*/
41
45
export function and ( filters : EntityFilter [ ] ) : CompositeFilter {
42
46
return new CompositeFilter ( filters , CompositeOperator . AND ) ;
43
47
}
44
48
45
49
/**
46
- * Returns an OR composite filter.
50
+ * Or filters are composed of many other filters and when they are applied
51
+ * then query results are returned when they pass through any of these other
52
+ * filters.
53
+ *
54
+ * @param {EntityFilter[] } filters The list of filters that make up the OR filter.
55
+ * @returns {CompositeFilter } A composite OR filter.
47
56
*
48
- * @param {EntityFilter[] } filters The filters that make up the OR filter.
49
57
*/
50
58
export function or ( filters : EntityFilter [ ] ) : CompositeFilter {
51
59
return new CompositeFilter ( filters , CompositeOperator . OR ) ;
You can’t perform that action at this time.
0 commit comments