shoppingListCreate
Create a new shopping list for the current user
Arguments
| Argument | Type | Description |
|---|---|---|
shoppingList | ShoppingListInput! |
Returns
| Field | Type | Description |
|---|---|---|
shoppingList | ShoppingList | Created shopping list information |
shoppingListErrors | [ShoppingListCreateError!] | Error details if creation failed |
Example
mutation { shoppingListCreate(shoppingList: { name: "Office Supplies" description: "Items needed for the office" }) { shoppingList { id name description lineItems { id slug quantity } } } }{ "data": { "shoppingListCreate": { "shoppingList": { "id": "id-1", "name": "Example", "description": "Example", "lineItems": [ { "id": "id-1", "slug": "/example", "quantity": 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 | Stub: answers Not implemented |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-shopping-list:
ShoppingListCreate

