Argument transaction tx with prisma accerlate typescript error
Yo yo,
so i have a very long transaction that i am wanting to break up, just for easier maintance. So i want to pass the transaction func as argument however i am getting typescript type mismatch. ( am guessing because of prisma accerlate)
example:
Doing above, ill get this error:
I suppose my main question, is it safe for me to just make this assumption?
1 Reply
Workaround and possible solution: https://github.com/prisma/prisma/issues/19949#issuecomment-2271131033
GitHub
Prisma client extensions: return type of
recordversion.findUnique
...Bug description After update to 4.16.x (observed on all tested versions tested so far from 4.16.0 through to 4.16.2-dev.2), an extended prisma client is considered to have an incompatible type for ...