Skip to main content

CustomerBuyingListWriteResult

The outcome of ONE line in a batch write. Per-item rather than all-or-nothing: one unorderable line must not discard the others the buyer got right.

type CustomerBuyingListWriteResult {
error: String
index: Int!
listId: ID!
ok: Boolean!
op: BuyingListWriteOp!
ref: ID!
}

Fields​

CustomerBuyingListWriteResult.error ● String scalar​

Machine-readable failure code (VARIANT_NOT_FOUND, LIST_ITEM_NOT_FOUND, QUANTITY_MUST_BE_POSITIVE,...) — the same strings the single-item mutations throw.

CustomerBuyingListWriteResult.index ● Int! non-null scalar​

Position within this group's add/removeItemIds array.

CustomerBuyingListWriteResult.listId ● ID! non-null scalar​

The list this result belongs to.

CustomerBuyingListWriteResult.ok ● Boolean! non-null scalar​

True when it was done.

CustomerBuyingListWriteResult.op ● BuyingListWriteOp! non-null enum​

Which half of the write this result is.

CustomerBuyingListWriteResult.ref ● ID! non-null scalar​

variantId on an add, itemId on a remove — what this row was.

Member Of​

CustomerBuyingListsWriteView object