Filters the documents using "or" logic on multiple predicates.
- Namespace
- Statiq
.Common - Containing Type
- ConfigExtensions
Syntax
public static IAsyncEnumerable<IDocument> FilterAsync(this IEnumerable<IDocument> documents, ICollection<Config<bool>> predicates, IExecutionContext context)
Parameters
Name | Type | Description |
---|---|---|
documents | IEnumerable |
The documents to filter. |
predicates | ICollection |
The predicates to combine. |
context | IExecutionContext | The current execution context. |
Return Value
Type | Description |
---|---|
IAsyncEnumerable |
Filtered documents where at least one of the provided predicates is true. |