Skip to main content
Anchor to CollectionReorderTargetInput

CollectionReorderTargetInput

input_object

The input fields for the place where toPosition puts its block of products. Specify exactly one.

•CollectionReorderEdge

Puts the block at the top or at the bottom of the collection.

Show enum values
•Int

The zero-based index where the first product of the block lands. An index past the end of the list puts the block at the bottom. A negative index returns INVALID_POSITION.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

The input fields for moving a block of products to one place in the collection.

The block keeps the order of productIds. Products that the request doesn't list keep their relative order around the block. Products that aren't in the collection are skipped.


Was this section helpful?