Docs
Dashboard

CollectionUpdateInput

Input

Represents the input for updating an existing collection.

#

Fields


id
ID!

The ID of the collection that’s being updated.

metafields
[MetafieldInput!]

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.

name
String

The name of the collection.

productsToAdd
[ID!]

The IDs of products to add to the collection. Products also listed in ProductsToDelete are deleted.

productsToDelete
[ID!]

The IDs of products to remove from the collection.

slug
String

The slug of the collection. If not provided, the slug will be generated from the name.