Interface OptionItem

Query Selection

interface OptionItem {
    aggregate?: Aggregate[];
    distinct?: boolean;
    fields?: string[];
    forUpdate?: boolean;
    groupby?: GroupBy[];
    limit?: number;
    orderby?: OrderBy[];
    skip?: number;
}

Properties

aggregate?: Aggregate[]

Aggregate function list

distinct?: boolean

Distinct field

fields?: string[]

Projection Field Collection

forUpdate?: boolean

select for update

Allows you to lock records returned by a query until the entire transaction to which the query belongs is committed.

Other transactions that attempt to query these records are blocked until the transaction that acquired the lock releases the lock or the transaction times out.

groupby?: GroupBy[]

Grouped field set

limit?: number

Maximum number of records to be queried. The default value is 5000. The maximum value is 10000.

orderby?: OrderBy[]

Sort field set

skip?: number

Number of skipped records. The default value is 0.