Hello. I'm using NodeJS/Apollo Server to work with...
# orm-help
r
Hello. I'm using NodeJS/Apollo Server to work with Prisma. I have a bunch of custom mutations that have custom logic within them and then forwards the request onto Prisma afterwards. I've noticed that if I create something via a nested mutation (using create:{} instead of connect:{}) then the custom logic I have doesn't get triggered. Is there a way to make it so no matter how an object is created (via a mutation or from any level of a nested create relationship) that my custom logic will always be called for that entity?
h
I guess you are using prisma-binding to forward the logic. It will be hard to determine the cause unless you share your implementation. Can you please share some example code?