Can't access two tables through prisma client?
I have two tables in schema.prisma, but whenever I do prisma. I can only access one of the tables but not the other..?
6 Replies
Solved: I had to restart my editor...?
Have you generated client types after your last schema change?
Usually is done by migrations
Yep!
It still didn't update until I closed and opened VS code.
Usually is done by migrations
you have to restart ts server everytime you generate the types
That happens from time to time - a simple window reload is always a great first fix (like unplugging the modem when the wlan does not work). ✌🏼