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