prorm API Reference
    Preparing search index...

    Interface UnionQueryOptions

    Options for a single union query

    interface UnionQueryOptions {
        model: ModelStatic<any>;
        where?: WhereOptions<any>;
        attributes?: string[] | { include?: string[]; exclude?: string[] };
        order?: Order;
        limit?: string | number;
        offset?: string | number;
        include?: IncludeOptions[] | Includeable[];
        as?: string;
    }
    Index
    model: ModelStatic<any>

    The model to query

    where?: WhereOptions<any>

    WHERE conditions for this union query

    attributes?: string[] | { include?: string[]; exclude?: string[] }

    Attributes to select

    order?: Order

    ORDER BY for this union query

    limit?: string | number

    LIMIT for this union query

    offset?: string | number

    OFFSET for this union query

    include?: IncludeOptions[] | Includeable[]

    Include related models

    as?: string

    Alias for this query (useful for debugging)