Collection Duplicate Payload
Return type for mutation.
Anchor to FieldsFields
- collection (Collection)
- job (Job)
- userErrors ([CollectionDuplicateUserError!]!)
- Anchor to collectioncollection•Collection
The newly created duplicate collection. Will contain all data if duplication completed synchronously. If async processing is required, the collection will be created but products will be added in the background and can be tracked via the job field or the collection's active_operations field.
- •Job
The background job copying manually included products onto the target collection. Only returned if async processing is required, otherwise products will be copied synchronously when the collection is created.
- Anchor to userErrorsuser•[Collection
Errors Duplicate User Error!]! non-null The list of errors that occurred from executing the mutation.
Anchor to Mutations with this payloadMutations with this payload
- collectionDuplicate (CollectionDuplicatePayload)
- •mutation
Duplicates a collection.
An existing collection ID and new title are required.
Publication Duplication
Publications may be excluded by passing
in the input.Metafields
Metafield values are not duplicated if the unique values capability is enabled.
- Anchor to inputinput•Collection
Duplicate Input! required The input for duplicating a collection.
Arguments