I need to do something every N time and I'm thinki...
# orm-help
g
I need to do something every N time and I'm thinking to use node-schedule for that but I cannot get how can I make queries and mutation inside this function since it is not a resolver. I tried to do like this, but it doesn't work because
server.context
doesn't have value
prisma
- https://gist.github.com/SilencerWeb/dc1acd12c123969f6c7fd39e680a7830#file-server-js-L27
d
hey! you can create a new Prisma instance inside that function! or create a
getPrismaInstance
function and use it in both places!