To insert the next page cursor into the outgoing H...
# replication-ask-ai
k
To insert the next page cursor into the outgoing HTTP request, you need to specify the "Inject into" and "Key name" fields in the pagination configuration. Based on the information provided in the extracts, if you want to insert the cursor into
variables.after
in the JSON payload, you should set "Inject into" to
request_body
and "Key name" to
variables.after
. Here is an example of how you might configure this:
Copy code
yaml pagination_strategy:     type: "CursorPagination"     cursor_value: "{{ last_records[-1]['id'] }}"     page_token_option:       type: "RequestPath"       field_name: "variables.after"       inject_into: "request_body"
In this example, the
cursor_value
is set to the ID of the last record fetched (
last_records[-1]['id']
). The
field_name
is set to
variables.after
, which is where you want to inject the cursor value in the JSON payload. The
inject_into
field is set to
request_body
, indicating that the cursor value should be injected into the body of the HTTP request. Please note that this is a general example and you might need to adjust it based on your specific API and pagination requirements. For more information, you can refer to the [Airbyte documentation on pagination](https://docs.airbyte.com/connector-development/connector-builder-ui/pagination/).
f
I don't want to insert the cursor into "variables.after", but instead in the json object variables['after']. How can I do that?