CartType
The customer's cart.
type CartType {
id: ID!
itemCount: Int!
items: [CartItemType!]!
name: String!
revision: Int!
subtotal: Float!
updatedAt: DateTime!
}
Fields
CartType.id ● ID! non-null scalar
The unique ID of this record.
CartType.itemCount ● Int! non-null scalar
How many items the cart has.
CartType.items ● [CartItemType!]! non-null object
The items in the cart.
CartType.name ● String! non-null scalar
The name of the cart.
CartType.revision ● Int! non-null scalar
Optimistic-concurrency counter — pass back as expectedRevision on the next mutation.
CartType.subtotal ● Float! non-null scalar
The cart amount before tax and delivery.
CartType.updatedAt ● DateTime! non-null scalar
When the record was last changed.
Returned By
addToCart mutation ● clearCart mutation ● customerAddListToCart mutation ● customerCart query ● customerReorderFromOrder mutation ● removeCartItem mutation ● updateCartItem mutation