Ordering

When requesting multiple instances of a content type, you can use the order argument to define the order in which items are returned.

You can order your result by one or more fields in either an ascending (using {FIELD}_ASC) or descending (using {FIELD}_DESC) order.

The following query retrieves booked sorted by their title field in ascending order:

query {
  bookCollection(order: [title_ASC]) {
    items {
      title
    }
  }
}
Integrates with your favourite tools and frameworks

© 2022 Status200 Ltd.