Cameron Gorrrie
09/19/2019, 12:49 AMtype 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?