This repository was archived by the owner on Feb 20, 2026. It is now read-only.
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/filter.ts +12-4Lines changed: 12 additions & 4 deletions | 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); |
|