cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

GraphQL pagination

maddog0
New Contributor II

Does anyone else have experience with using pagination with GraphQL APIs?

I am working with a new endpoint that uses GraphQL but the limit and offseset parameters for it are kept in the body of the request which creates issues. Iโ€™ve figured out that I can use expressions to set the limit and offset in the body, but even when I set the pagination to a generic entity isnโ€™t empty expression the first request will go through fine, but the second one will return an error stating the request has no body.

So I guess in the end I have 2 questions

  1. is there a way to ensure the pagination request resends the body of the request when sent through the HTTP client snap
  2. is there any better way to deal with graphQL API requests than writing a raw body in the HTTP client snap?

if it helps here is a screenshot of my current HTTP client snap setup
image

0 REPLIES 0