r[ae]ym
CRUDSchemaField

@sortable

Use the @sortable to enable sorting on a field.

This directive requires the @searchable directive to be enabled on the type. @searchable

Example

user.graphql
type User @crudType @searchable {
    name: String! @sortable
}

In this case, the name field will be available for sorting via typesense.

On this page