Tutorial 7 - Sorting
Introduction
Sorting by a Single Property
query sorted_categories {
records(per_page: 2000, filter: {table: {contains: "category"}}) {
results {
table
id
properties
}
}
}Step 1) First, we'll add in a sort parameter
Step 2) Next, you can add a sort method.
2) a) A field from the main options
2) b) a property from properties
Step 3) Select a sort order
Sorting by Multiple Properties
Next Time
PreviousTutorial 6 - (Answers)NextTutorial 8 - Building a Liquid API GET Endpoint Page powered by GraphQL queries
Last updated
Was this helpful?

