Skip to main content
@tags: results, count, limit, skip, sort, order, pagination, filtering

Count Elements using COUNT

Syntax

Example 1: Basic element counting

  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK:

Scope Results using RANGE

Syntax

Notes:
  • Both start and end are required and must be positive integers (I64).
  • RANGE is 0-based, so the first element is 0, the second element is 1, etc.
  • RANGE is inclusing of start but exclusive of end. So RANGE(0, 10) will return elements 0 to 9 (10 elements).

Example 1: Basic pagination

  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK:

Sort Results using ORDER

Syntax

Notes:
  • Use Asc for ascending order and Desc for descending order.

Example 1: Sorting by age (oldest first)

  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK:

Example 2: Sorting by age (youngest first)

  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK: