Type alias CreateArangoSearchViewPrimarySortOptions

CreateArangoSearchViewPrimarySortOptions: {
    direction: Direction;
    field: string;
} | {
    asc: boolean;
    field: string;
}

Options for creating a primary sort in an ArangoSearch View.

Type declaration

  • direction: Direction

    If set to "asc", the primary sorting order will be ascending. If set to "desc", the primary sorting order will be descending.

  • field: string

    Attribute path for the value of each document to use for sorting.

Type declaration

  • asc: boolean

    If set to true, the primary sorting order will be ascending. If set to false, the primary sorting order will be descending.

  • field: string

    Attribute path for the value of each document to use for sorting.