Product Duplicate Payload
Return type for mutation.
Anchor to FieldsFields
- imageJob (Job)
- newProduct (Product)
- productDuplicateOperation (ProductDuplicateOperation)
- shop (Shop!)
- userErrors ([UserError!]!)
- Anchor to imageJobimage•Job
Job The asynchronous job that duplicates the product images.
- Anchor to newProductnew•Product
Product The duplicated product.
- Anchor to productDuplicateOperationproduct•Product
Duplicate Operation Duplicate Operation The product duplicate operation, returned when run in asynchronous mode.
- Anchor to shopshop•Shop!non-null
The user's shop.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Anchor to Mutations with this payloadMutations with this payload
- productDuplicate (ProductDuplicatePayload)
- •mutation
Duplicates a product.
If you need to duplicate a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors.
To avoid these timeout errors, include the
synchronous: falseargument in this mutation to perform the duplication asynchronously.Metafield values are not duplicated if the unique values capability is enabled.
- Anchor to includeImagesinclude•Boolean
Images Default:false Specifies whether or not to duplicate images.
- Anchor to includeTranslationsinclude•Boolean
Translations Default:false Specifies whether or not to duplicate translations.
- Anchor to newStatusnew•Product
Status Status The new status of the product. If no value is provided the status will be inherited from the original product.
- Anchor to newTitlenew•String!
Title required The new title of the product.
- Anchor to productIdproduct•ID!
Id required The ID of the product to be duplicated.
- Anchor to synchronoussynchronous•BooleanDefault:true
Specifies whether or not to run the mutation synchronously.
Arguments