Having this schema ``` type Product { id: ID! @...
# orm-help
t
Having this schema
Copy code
type Product {
  id: ID! @id
  ....
}

type CartItem {
  id: ID! @id
  product: Product!
  quantity: Float!
  cart: Cart!
}

type Cart {
  id: ID! @id
  user: User! @relation(name: "Cart", link: INLINE)
  items: [CartItem] @relation(onDelete: CASCADE)
}
the CRUD operations generated by prisma does not allow to update a CartItem based on a product.id, is there any other way to do this other than manually add productId to the cartItem?
Copy code
type CartItem {
  id: ID! @id
  productId: ID! @unique
  product: Product!
  quantity: Float!
  cart: Cart!
}
Basically, I want to update an item of a Cart where instead of doing it by CartItem.id I want to do it by CartItem.product.id or even by Cart.id