Skip to content

shoppingListCreate

Mutationin Shopping lists

Create a new shopping list for the current user

Arguments

ArgumentTypeDescription
shoppingListShoppingListInput!

Returns

ShoppingListCreateResponse!

FieldTypeDescription
shoppingListShoppingListCreated 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
}
}
}
}

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/sfccStub: answers Not implemented

Used by

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