CartItem

data class CartItem(val productId: String, val quantity: Int = 1)

Constructors

Link copied to clipboard
constructor(productId: String, quantity: Int = 1)

Properties

Link copied to clipboard
@QueryReference(aggregateName = "product")
val productId: String

The product's id. Products live outside this example service (see PricingService, InventoryService).

Link copied to clipboard