GraphQL Pagination in Custom Connector #30496
-
The standard Shopify connector for Airbyte is great, but it doesn't yet include Company data from the B2B tools in Shopify. So I'm trying to find a way to extract that company data via a custom connector. Company data is available in the Shopify GraphQL api here. I've been able to authenticate and pull a single page of data into Airbyte. The problem that I'm having is with pagination. Here is Shopify's documentation on pagination. The basic query that I'm using looks like this:
For pagination to work, I need a variable Am I missing something obvious? Has anyone else been able to solve a similar problem? I'm attaching my yaml config here for reference as well.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Also having the same issue with Saleor GraphQL API, it seems generally pagination with GraphQL is not possible? |
Beta Was this translation helpful? Give feedback.
-
found solution to this, you need to use variables and jinja if else predicate to add conditionally cursor |
Beta Was this translation helpful? Give feedback.
Here you go, this is for Saleor GraphQL API which has similar GraphQL convention so should be easy to adopt to your query