Hello everyone - could anyone point me to an examp...
# prisma-whats-new
m
Hello everyone - could anyone point me to an example where someone automates the creation of node when another node is created? The idea would be to reference the created node. I imagine it would be possible to do this via a function/subscription
a
Sure, you could use a function for this. Have a look at this example: https://www.graph.cool/forum/t/how-to-create-new-data-object-in-server-side-subscription-function/713 , you probably can find more examples on the forum
Also have you considered using a nested create mutation for this?
m
Thanks. I'm looking at both :)