shoppingList
Get a specific shopping list by ID (returns default list if no ID provided)
Arguments
| Argument | Type | Description |
|---|---|---|
id | ID |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier for the shopping list |
name | String! | Name of the shopping list |
description | String | Optional 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 } } }}{ "data": { "shoppingList": { "id": "id-1", "name": "Example", "description": "Example", "lineItems": [ { "id": "id-1", "slug": "/example", "quantity": 1, "variant": { "id": "id-1", "sku": "SKU-1" } } ] } }}The query is the example the schema documents. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Resolved |
| @evolve-framework/sfcc | Resolved |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-shopping-list:
GetShoppingListDetail

