Skip to main content

ProductBulkTargetInput

What to bulk delete. Give exactly one form: an explicit list of product IDs, or all with a filter and the expected total.

input ProductBulkTargetInput {
all: Boolean
expectedTotal: Int
filter: ProductFilterInput
idempotencyKey: String
productIds: [ID!]
}

Fields​

ProductBulkTargetInput.all ● Boolean scalar​

True to delete everything that matches the filter.

ProductBulkTargetInput.expectedTotal ● Int scalar​

How many products the filter is expected to match. The delete is refused if the count differs.

ProductBulkTargetInput.filter ● ProductFilterInput input​

The list filter that selects the products, when all is true.

ProductBulkTargetInput.idempotencyKey ● String scalar​

A unique key per confirm click. Sending the same key again returns the existing operation instead of deleting twice.

ProductBulkTargetInput.productIds ● [ID!] list scalar​

The IDs of the products to delete. The number is capped, and each ID is checked against the organization.

Member Of​

bulkDeleteProducts mutation ● productBulkDeletePreview query