Join Slack
Powered by
howdy, if I have a node A with nested nodes Bs (th...
# orm-help
z
zonofthor
06/08/2018, 3:59 PM
howdy, if I have a node A with nested nodes Bs (through relations), how do I create a copy of A & Bs - I guess I'm looking for a way to
clone
them?
n
nilan
06/08/2018, 4:35 PM
1) query A & Bs 2) run
createA(data: { create: [...bs] })
z
zonofthor
06/08/2018, 5:19 PM
roger! even easier than doing a mutation query
n
nilan
06/08/2018, 5:20 PM
what is a mutation query?
z
zonofthor
06/08/2018, 8:34 PM
hmm let's just say your suggestion works the best, just started writing resolvers :-)(
2
Views
Open in Slack
Previous
Next