AlmondTill/G3N API

EditCollectionInput

input type

Edit-input for a Collection. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A supplied predicate replaces wholesale (it can never be cleared — a dynamic collection always carries one) and is re-gated per ref exactly like create; excludedProductIds replaces wholesale (an empty list releases); sortMode replaces (never cleared — it has a birth default). collectionType is NOT editable (immutable at birth). The dynamic-only fields are refused on a static collection.

Fields

FieldTypeRequiredNotes
captionStringno
codeStringno
predicateCollectionPredicateInputnoThe replacement predicate (wholesale; ≥1 axis) — dynamic collections only.
excludedProductIdsID [ID!]noThe replacement exclusion list (wholesale; an empty list releases) — dynamic only.
sortModeStringnoThe replacement sort mode (canned) — dynamic only.

Used by