Skip to content

shoppingList

Queryin Shopping lists

Get a specific shopping list by ID (returns default list if no ID provided)

Arguments

ArgumentTypeDescription
idID

Returns

ShoppingList

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

Example

query {
shoppingList(id: "sl-123") {
id
name
description
lineItems {
id
slug
quantity
variant {
id
sku
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccResolved

Used by

The storefront packages that send it, in these GraphQL documents: