Quick question; just getting started with Prisma a...
# orm-help
c
Quick question; just getting started with Prisma and PostgreSQL.
Copy code
type Cart {
  id: Int! @id
  sessionId: String! @unique
  user: User!
  items: [CartItem!]!
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
}
I want to upsert a cart given a sessionId and userId, but the autogenerated client doesn't have that capability (only
id
and
sessionId
are available). How could I go about this with the client, or am I going to have to dip into SQL?