I am using bulk operation for importing CSV and creating products using Graphql
Now as suggested in “New Product Model” /variants endpoint is deprecated now
I want to make variants out of the option I have given in CSV
Now this is my bulk operation query :
<<<'QUERY'
mutation ($bulkMutationKeyUpdate:String!) {
bulkOperationRunMutation(
mutation: "mutation call($input: ProductInput!) { productCreate(input: $input) { product {id title handle options {
id
name
position
optionValues {
id
name
hasVariants
}
}variants(first: 250) {
edges {
node {
id
title
price
sku
}
}
}} userErrors { message field } } }"
stagedUploadPath: $bulkMutationKeyUpdate
) {
bulkOperation {
id
url
status
}
userErrors {
message
field
}
}
}
QUERY;
But it will only generate 1 variant out of the given option
I want to make variants as i have given in CSV
