Solved

GraphQL Bulk Product Import - Results file only includes 10 variants but successfully imported 15

Adam_pwks
Shopify Partner
2 1 0

Hi,
I'm running into some thing odd when using the GraphQL bulk import endpoint for products via php. The import to Shopify is working great, however I'm noticing the results file returned doesn't include all the variants for a product that have been imported. 

Testing with a single product that has 15 variants, the jsonl file contains the product & all 15 variants. Once the import has completed I can see the product and all 15 variants have import correctly to Shopify. However when I get the result file using "fopen" on the provided "url" (the "partialDataUrl" field is null). I then use "stream_get_contents" on the resulting file handle to get the results data. However it only includes details of 10 variants out of the 15 that were imported.    

It feels like this maybe some default limit on the variants Node but I have no control over setting such a limit when making the request or fetching the results file. The file looks complete content ending with "__lineNumber":0 so not cut off in anyway. Please can you advise what I may be doing wrong?     


Accepted Solution (1)

Adam_pwks
Shopify Partner
2 1 0

This is an accepted solution.

Update: Found what I was doing wrong. Forgot that the variant limit was specified on the underlying mutation, using first: 10.  

View solution in original post

Reply 1 (1)

Adam_pwks
Shopify Partner
2 1 0

This is an accepted solution.

Update: Found what I was doing wrong. Forgot that the variant limit was specified on the underlying mutation, using first: 10.