How to define types in Pothos that work with Prisma?
Hi. I am trying to migrate from nexus to Pothos. But I run in to some trouble when trying to define my input types.
See image for example of my code.
The Prisma delete function does not agree on my defined type. Can you see what I am missing? TS error below:

3 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!Update. I found out that there is a prismaWhereUnique method that seems to solve my problem above.
Glad to hear that you were able to find the solution 🙌