Join Slack
Powered by
hello how can we call another mutation in a mutati...
# orm-help
k
Khoa Huynh
07/14/2018, 8:54 PM
hello how can we call another mutation in a mutation?
t
tmoney
07/16/2018, 10:43 PM
do you mean to call 2 mutations simultaneously? Or call a nested mutation? Because they do support nested mutations
tmoney
07/16/2018, 10:44 PM
https://www.prisma.io/docs/1.7/reference/prisma-api/mutations-ol0yuoz6go/#nested-mutations
tmoney
07/16/2018, 10:45 PM
You can also call another mutation simultaneously, you just have to put it underneath the first one at the same level:
Copy code
mutation doStuff { createThing { id } createOtherThing { id } }
2
Views
Open in Slack
Previous
Next