A question about the generated prisma API, think a...
# prisma-whats-new
d
A question about the generated prisma API, think a datamodel type Card The generated API is
Copy code
createCard(data: CardCreateInput!): Card!
updateCard(data: CardUpdateInput!, where: CardWhereUniqueInput!): Card
deleteCard(where: CardWhereUniqueInput!): Card
Update and Delete return optional
Card
but create returns
Card!
- why so? what if there is an error while created? What would be the content of data part of response, since it cannot be null?