The idea is:
When doing pagination in the HTTP Request node, we can update body parameters on each iteration.
The idea is to be able to use dot notation for the parameters name, so that we could update a parameters which itself is an object in the body. Right now it is only possible to update the first level fields in the body’s JSON.
My use case:
In GraphQL, we can paginate over resources through updating body parameters.
For instance, the body could be
{
"query": <query goes here>,
"variables": {"first": 2, "after": null}
}
where first
indicates how many results to return at once, and the after
is to point to the object after which the search needs to happen.
The http response returns the value “endCursor”, which should be used in the after
field on the next request.
If we attempt to use variables.after
in the pagination, we will end up having a separate field in the http request body:
which makes me believe that dot notation
is not supported/possible for this use case.
I think it would be beneficial to add this because:
this would allow for easier http request node configuration in more complex pagination update scenarios.
Any resources to support this?
Here is an example of one of the services, which use this type of pagination: