Skip to content

Shopping lists types

The types the shopping lists domain defines, with the fields other domains add to them.

Objects

ShoppingList

Customer shopping list containing saved products for future purchase

FieldTypeDescription
idID!Unique identifier for the shopping list
nameString!Name of the shopping list
descriptionStringOptional description of the shopping list
lineItems[ShoppingListLineItem!]!Items in the shopping list

ShoppingListCreateResponse

FieldTypeDescription
shoppingListShoppingListCreated shopping list information
shoppingListErrors[ShoppingListCreateError!]Error details if creation failed

ShoppingListDeleteResponse

FieldTypeDescription
successBoolean!
shoppingListErrors[ShoppingListDeleteError!]Error details if deletion failed

ShoppingListLineItem

Individual item within a shopping list containing product and quantity information

FieldTypeDescription
idID!Unique identifier for the line item
variantProductVariant!Product variant for this line item
quantityInt!Quantity of the item in the shopping list
slugStringURL slug for the product (optional)

ShoppingListLineItemsAddResponse

FieldTypeDescription
shoppingListShoppingListUpdated shopping list information after line item operation
shoppingListErrors[ShoppingListLineItemsAddError!]Error details if line item operation failed

ShoppingListLineItemsRemoveResponse

FieldTypeDescription
shoppingListShoppingListUpdated shopping list information after line item operation
shoppingListErrors[ShoppingListLineItemsRemoveError!]Error details if line item operation failed

ShoppingListLineItemsUpdateResponse

FieldTypeDescription
shoppingListShoppingListUpdated shopping list information after line item operation
shoppingListErrors[ShoppingListLineItemsUpdateError!]Error details if line item operation failed

ShoppingListResult

Paginated result containing shopping lists and metadata

FieldTypeDescription
items[ShoppingList!]!List of shopping lists returned in the result
paginationPagination!Where this page sits within the full result set

ShoppingListUpdateResponse

FieldTypeDescription
shoppingListShoppingListUpdated shopping list information
shoppingListErrors[ShoppingListUpdateError!]Error details if update failed

Input objects

ShoppingListInput

Input data for creating or updating a shopping list

FieldTypeDescription
nameString!Name for the shopping list
descriptionStringOptional description for the shopping list

ShoppingListLineItemAddInput

Input data for adding a new item to a shopping list

FieldTypeDescription
skuString!SKU of the product variant to add
quantityIntQuantity of the item (optional, defaults to 1)

ShoppingListLineItemUpdateInput

Input data for updating an existing item in a shopping list

FieldTypeDescription
idID!ID of the line item to update
quantityIntNew quantity for the line item

Unions

ShoppingListCreateError

One of ValidationError.

ShoppingListDeleteError

One of ValidationError.

ShoppingListLineItemsAddError

One of ValidationError.

ShoppingListLineItemsRemoveError

One of ValidationError.

ShoppingListLineItemsUpdateError

One of ValidationError.

ShoppingListUpdateError

One of ValidationError.