Anchor to collectionAddProductscollection
mutationcollection Add Products
Requires access scope. Also: The store must not be on the Starter or Retail plans and user must have a permission to add products to a collection.
Adds products to a collection.
Anchor to Arguments
Arguments
- •ID!required
The ID of the collection that's being updated. This can't be a smart collection.
- Anchor to productIdsproduct•[ID!]!required
Ids The IDs of the products that are being added to the collection. If any of the products is already present in the input collection, then an error is raised and no products are added.
Was this section helpful?
- Anchor to collectioncollection•Collection
The updated collection. Returns
null
if an error is raised.- Anchor to userErrorsuser•[User
Errors Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?