Join Slack
Powered by
Hello everyone - could anyone point me to an examp...
# prisma-whats-new
m
max
10/03/2017, 7:44 PM
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
ameistad
10/03/2017, 8:14 PM
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
ameistad
10/03/2017, 8:16 PM
Also have you considered using a nested create mutation for this?
m
max
10/03/2017, 9:34 PM
Thanks. I'm looking at both :)
2
Views
Open in Slack
Previous
Next