Discuss all the new features introduced with the new product model in GraphQL.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
We're trying to migrate to the new DuplicateProduct mutation but we're encountering issues. With the old ProductDuplicateAsyncV2 we would immediately get the new product ID so that we can wait for it to be ready and make further changes automatically.
The new DuplicateProduct mutations always returns 'null' for newProduct { id }. Will this be addressed?
What's worse is it also returns the ID of the ProductDuplicateOperation, for example "gid://shopify/ProductDuplicateOperation/2165997744". So you would expect to be able to retrieve this job, and eventually get the product ID... but that does not work either:
{
node(id: "gid://shopify/ProductDuplicateOperation/2165997744") {
... on ProductDuplicateOperation {
newProduct {
id
}
}
}
}
Results in:
{
"errors": [
{
"message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 62a3933f-6953-4be4-8f3e-8479c274677a-1728402382 (include this in support requests).",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"requestId": "62a3933f-6953-4be4-8f3e-8479c274677a-1728402382"
}
}
]
}
Please advise! We cannot use this migration in its current state.
Note: This has been tested on API versions 2024-10 and 2025-01.