prorm API Reference
    Preparing search index...

    Interface SubqueryOptions

    Subquery wrapper for use in WHERE clauses

    interface SubqueryOptions {
        sql: string;
        literal?: boolean;
        model?: ModelStatic<any>;
        modelOptions?: FindOptions;
    }
    Index
    sql: string

    The SQL query string (raw or with model reference)

    literal?: boolean

    Whether this is a literal SQL string vs a model-based subquery

    model?: ModelStatic<any>

    Model to use for building the subquery

    modelOptions?: FindOptions

    Options for building the subquery (if model is provided)