expandGroupFilter
Prior to serialization into the query syntax for the backing APIs, we first expand Filters
Filter's can express their intent in a very terse form, but to ensure consistent structures we expand them into their more verbose form.
i.e. title: "Water"
expands into title: { any: ["Water"]}
- Fields defined as
string | string[] | MatchOptions
will be converted to aMatchOptions
- RelativeDate fields are converted to DateRange
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
filter Required | Filter<"group"> |
Returns
Property | Type | Notes |
---|---|---|
Optional | string | string[] | IMatchOptions | |
Optional | IDateRange<number> | IRelativeDate | |
Optional | string | string[] | IMatchOptions | |
Optional | boolean | |
Optional | boolean | |
Optional | IDateRange<number> | IRelativeDate | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions | |
Optional | "groupMember" | |
Optional | string | |
Optional | string | string[] | IMatchOptions | |
Optional | string | |
Optional | string | string[] | IMatchOptions | |
Optional | string | string[] | IMatchOptions |
Function defined in common/src/search/group-utils.ts:92