Queries and aggregations

This is the documentation of the GraphQL Library version 6. For the long-term support (LTS) version 5, refer to GraphQL Library version 5 LTS.

Each node defined in type definitions has two query fields generated for it: one for querying data and another one for aggregating it. Each of these fields, by their part, accepts two arguments used for filtering, sorting, and pagination.

This section addresses the following topics:

  • Queries - Read or fetch values.

  • Aggregations - Combine lists of types from different sources into a single list.

  • Filtering - Filter query results to find objects.

  • Sorting - Sort query results by individual fields.

  • Pagination - Navigate result pages.