prisma type error on union type stored as json
I am trying to convert my Cloud Firestore project to supabase due to some issues I have had with transactions. I have the following types in my code:
And this is my prisma schema I am using for experimentation:
In my code I am trying to do:
But I am getting this error. Can someone help me understand whats going wrong?
Solution:Jump to solution
Figured it out. In case anybody cares, prisma requires types not interfaces to make this work
2 Replies