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
amanuel
amanuelOP3y ago
Solved: I had to restart my editor...?
Leonidas
Leonidas3y ago
Have you generated client types after your last schema change? Usually is done by migrations
amanuel
amanuelOP3y ago
Yep! It still didn't update until I closed and opened VS code.
Leonidas
Leonidas3y ago
Usually is done by migrations
nexxel
nexxel3y ago
you have to restart ts server everytime you generate the types
Leonidas
Leonidas3y ago
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). ✌🏼
Want results from more Discord servers?
Add your server