Lesson 8: Composing clauses

In this lesson, we’ll learn how we can compose clauses to build queries into longer pipelines, and to to retrieve results in more useful structures using advanced fetch clause functionality.

We’ll see how to perform aggregations, and finally how we can sort and paginate the results returned.

  • You should complete Lesson 7 before starting this lesson.

Lesson contents

Learn how to chain clauses

Learn how to group results using subqueries.

Learn how to aggregate results using subqueries.

Learn how to sort and paginate query results.

TypeQL keywords introduced

  • reduce

  • count

  • sum

  • max

  • min

  • mean

  • median

  • std

  • sort

  • asc

  • desc

  • limit

  • offset