File tree Expand file tree Collapse file tree
handwritten/datastore/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,18 +34,26 @@ enum CompositeOperator {
3434}
3535
3636/**
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.
3843 *
39- * @param {EntityFilter[] } filters The filters that make up the AND filter.
4044 */
4145export function and ( filters : EntityFilter [ ] ) : CompositeFilter {
4246 return new CompositeFilter ( filters , CompositeOperator . AND ) ;
4347}
4448
4549/**
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.
4756 *
48- * @param {EntityFilter[] } filters The filters that make up the OR filter.
4957 */
5058export function or ( filters : EntityFilter [ ] ) : CompositeFilter {
5159 return new CompositeFilter ( filters , CompositeOperator . OR ) ;
You can’t perform that action at this time.
0 commit comments