Type Alias NarrowedQueryResults<T, F>

NarrowedQueryResults: ExtractTypeFromFilter<F> extends infer Names extends
    string
    ? NarrowByNames<T, Names>
    : QueryResults<T>

Narrows query results based on the type value extracted from a filter object. If the filter's type resolves to specific entity names, returns an array of those entity attribute types. Otherwise falls back to the full QueryResults<T> union.

Type Parameters

  • T extends default

    The root entity being queried.

  • F

    The filter object from which type is extracted.