prorm API Reference
    Preparing search index...

    Enumeration SortDirection

    Sort direction for index column ordering.

    Companion enum for the 'ASC' | 'DESC' string-literal union used by IndexField.order. Raw string literals remain valid; the enum is an additive, opt-in alternative.

    // Using raw string literals (still supported)
    indexes: [{ fields: [{ name: 'email', order: 'DESC' }] }]

    // Using the SortDirection enum
    import { SortDirection } from 'prorm';
    indexes: [{ fields: [{ name: 'email', order: SortDirection.DESC }] }]
    Index
    ASC: "ASC"
    DESC: "DESC"