SR072

Severity: error

Summary: index order must be ‘asc’ or ‘desc’

What this means

An index definition has an order: attribute with a value other than asc or desc. These are the only two supported sort directions for index generation.

Example that triggers this

indexes:
  - fields: [created_at]
    order: INVALID

How to fix it

Use asc or desc for the index order:

- { fields: [created_at], order: desc }

Back to top

Shaperail documentation lives in the same repository as the framework so every release has versioned instructions. See the latest release for the most recent version.

This site uses Just the Docs, a documentation theme for Jekyll.