Pagination with counters

Did you try something like the below?

all as counters(func: regexp(entityName, /some name/)){
  total: count(uid)
}

entities(func: uid(all), first: 5,offset:10) {
  uid
  entityName
  ...
}
1 Like