Hey everybody, I have just started with prefect gr...
# ask-community
k
Hey everybody, I have just started with prefect graphql interface, but I cannot find how I should correctly do the pagination with it? Does anybody knows how to paginate response in prefect graphql?
r
I am not sure if there is a better way to do this, but you could use the
limit
and
offset
values to help paginate results. Something like the example below:
Copy code
query {
  flow_run (limit:4, offset:2) {
   	id
  }
}
k
I thought about this as well, but then how to get the count ( I though about iterating while the output is not empty). But more importantly: how to preserve the order consistency?