Skip to content

FilterExpressionComposer

class in JsonApiToolkit.Extensions.Querying

Composes LINQ predicates from JSON:API FilterGroup trees. Owns the full pipeline in one place: group combination (And/Or/Not), path walking (scalar, dot-path navigation, collection Any(), nested collections), operator semantics, null-safety guards, and recursion-depth limiting.

public sealed class FilterExpressionComposer

Constructors

FilterExpressionComposer(logger: ILogger, propertyResolver: Func, strictValidation: bool)

Methods

Compose(group: FilterGroup)

: Expression<Func<T, Boolean>>

Compose(group: FilterGroup, entityType: Type)

: LambdaExpression

Composes a predicate lambda for entityType (non-generic overload for Type-erased callers), or null when the group yields no usable filters.

Parameters - group - entityType