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
amanuel2y ago
Solved: I had to restart my editor...?
Leonidas
Leonidas2y ago
Have you generated client types after your last schema change? Usually is done by migrations
amanuel
amanuel2y ago
Yep! It still didn't update until I closed and opened VS code.
Leonidas
Leonidas2y ago
Usually is done by migrations
nexxel
nexxel2y ago
you have to restart ts server everytime you generate the types
Leonidas
Leonidas2y 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