CollectionUpdateInput
InputRepresents the input for updating an existing collection.
#
Fields
- ID!
id The ID of the collection that’s being updated.
- [MetafieldInput!]
metafields The metafield values to add or update on the collection. Existing metafields not included in the list are preserved. When explicitly specified as null, all assigned collection metafields are removed.
- String
name The name of the collection.
- [ID!]
productsToAdd The IDs of products to add to the collection. Products also listed in ProductsToDelete are deleted.
- [ID!]
productsToDelete The IDs of products to remove from the collection.
- String
slug The slug of the collection. If not provided, the slug will be generated from the name.