Skip to main content
You're reading the V1 docs. They cover the first generation of Intuition: the intuition-ts packages and the intuition-rs services. New development happens in V2. Open the V2 docs
Version: V1

Example: Triples Pagination

Paginate through triples with total count for UI.

Query​

Query

query GetTriplesPage($limit: Int!, $offset: Int!) {
  total: triples_aggregate {
    aggregate {
      count
    }
  }
  triples(
    limit: $limit
    offset: $offset
    order_by: { created_at: desc }
  ) {
    term_id
    created_at
    subject { label image }
    predicate { label }
    object { label image }
  }
}

Variables

Click "Run Query" to execute the GraphQL query and see results