Schema Documentation

AddToCartInput

Description

Input for the addToCart mutation

Fields
Input FieldDescription
clientMutationId - String

This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.

extraData - String

JSON string representation of extra cart item data

productId - Int!

Cart item product database ID or global ID

quantity - Int

Cart item quantity

variation - [ProductAttributeInput]

Cart item product variation attributes

variationId - Int

Cart item product variation database ID or global ID

Example
{"clientMutationId":"xyz789","extraData":"abc123","productId":987,"quantity":123,"variation":[ProductAttributeInput],"variationId":987}