AutoBE
    Preparing search index...

    Interface AutoBeRealizeQueryOrderByRequestSort

    Sort order derived deterministically from a request-provided sort array against a fixed column whitelist.

    The renderer emits pure code that parses each request sort token (a leading +/- selects asc/desc, default asc), maps the field name to its whitelisted column path, silently drops fields not on the whitelist, and falls back to fallback (or the first whitelisted column) when the request sort is absent, empty, or fully invalid. Only whitelisted columns are ever sortable, so untrusted request input can never inject an arbitrary column.

    interface AutoBeRealizeQueryOrderByRequestSort {
        allowed: AutoBeRealizeQueryOrderByAllowed[];
        fallback?: AutoBeRealizeQueryOrderByStatic[];
        source: AutoBeRealizePathSegment[];
        type: "requestSort";
    }
    Index

    Properties

    Whitelist mapping each accepted sort field name to its Prisma column path.

    A request token's field name is matched against field; only matches become sort keys, and the resolved path is the exact Prisma column path used in the emitted orderBy.

    Sort applied when the request sort yields no usable key (missing, empty, or every token unknown).

    Each entry must be a static sort key. When omitted, the first whitelisted column is used with ascending order.

    Path to the request sort array of string tokens, e.g. ["body", "sort"].

    Resolved from the provider's props scope, the same root used by { "type": "reference", "source": "props" } query references.

    type: "requestSort"

    Discriminator for the dynamic request-driven sort form.