Prisma TRPC Casing Issue
I have following schema:
I want to return the foreign key data aswell so I am doing this in my findMany
But I still get an error that my casing is wrong?
7 Replies
although I set it to lower case
Have you generated the client and migrations recently?
I ran
npx prisma migrate dev
nothing moreIf running it again doesn't prompt you to create another migration then idk what's going on
it prompted another migration
it created it but still same issue
To verify, it's a runtime issue and not a typescript issue?
I think it is a runtime issue, not a typescript issue
Currently this is my query
no typescript errors but the error I described at the top, but if I change it to camel case like this:
I get a typescript issue but it works in my frontend
wow this even happens after resetting all migrations and resetting my data