I want to add to this post a bit since we're all being forced into GraphQL . I'm also curious where you all are having to escape quotes because non-escaped quotes are working fine for me.
GraphQL connector setup
If you're using the GraphQL connector we have, you would have a setup similar to what I have below in order to paginate on your export. Our branded Shopify connector will have this better GraphQL editor baked into it in the next release as well, so this will be more relevant.
Query:
query getProductVariants($first: Int, $after: String) {
productVariants(first: $first, after: $after) {
edges {
node {
id
title
sku
price
compareAtPrice
inventoryQuantity
availableForSale
updatedAt
product {
id
title
}
selectedOptions {
name
value
}
image {
originalSrc
altText
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables:
{
"first":200,
"after": {{#if export.http.paging.token}}"{{export.http.paging.token}}"{{else}}null{{/if}}
}
GraphQL setup using HTTP connector or Shopify in HTTP form
If using the existing Shopify connector or the normal HTTP connector, your setup would be something more like this.
Post body
{
"query": "query getProductVariants($first: Int, $after: String) { productVariants(first: $first, after: $after) { edges { node { id title sku price compareAtPrice inventoryQuantity availableForSale updatedAt product { id title } selectedOptions { name value } image { originalSrc altText } } } pageInfo { hasNextPage endCursor } } }",
"variables": { "first": 2, "after": {{#if export.http.paging.token}}"{{export.http.paging.token}}"{{else}}null{{/if}} }
}