Hey guys, I'm fairly new to using prisma and am tr...
# orm-help
a
Hey guys, I'm fairly new to using prisma and am trying to build a nodejs application with the usage of prisma.
1
p
I'm not quite sure I'm following what you are asking. When you run your node server, do you do something like "node server.js"? If so, you do have to restart manually because generate creates some static javascript that is included. I assume you know that you can run nodemon and have the server restart on file changes? (https://stackoverflow.com/questions/1972242/how-to-auto-reload-files-in-node-js). Also, you only run generate once so it seems odd that restarting node after that is an issue. Once I generate, I don't often come back to do that again for a long time (or until my schema changes). HTHs.
a
Hey Peter, I have tried using nodemon but the result is same, once the new prisma schema is generated, the server started again, but it is not showing that findMany is possible, it still gives me the same error mentioned here. But when I manually stop the server and start it again, it seems to work. UPDATE : I have used a new listener to listen and start the server again. Now it is working. Thanks a lot!
🚀 1
n
Hey Arun 👋 Which new listener did you use? Can you let us know how did you stumble into this issue and if you were following any specific tutorial/guide? We would like to improve it so that it becomes easier to get started with prisma and users could avoid running into these issues.