Filters the documents.
- Namespace
- Statiq
.Common - Containing Type
- ConfigExtensions
Syntax
public static IAsyncEnumerable<IDocument> FilterAsync(this IEnumerable<IDocument> documents, Config<bool> predicate, IExecutionContext context)
Parameters
| Name | Type | Description |
|---|---|---|
| documents | IEnumerable |
The documents to filter. |
| predicate | Config |
The predicate. |
| context | IExecutionContext | The current execution context. |
Return Value
| Type | Description |
|---|---|
| IAsyncEnumerable |
Filtered documents where the provided predicate is true. |