mutate return value

So I am not getting all of the data on my mutate return. I am creating a task, which has subtasks (relational to the task) and I am creating them while creating the task all in one big block, the thing is that the return value when calling this createTask function doesnt give me the subtasks too, only the task that it created, how can I achieve the behavior I am seeking?
4 Replies
Brendonovich
Brendonovich2y ago
You need to add an include clause if you want relations to be loaded, even if you provide a value for them originally
Eylon
EylonOP2y ago
I know include is needed for queries to get the relations but what about this case where its a nested create clause? Where would I put include?
awexis
awexis2y ago
Outside of "data" curly braces. Should get auto complete for include/select/etc.
Eylon
EylonOP2y ago
this works! thank you very much!
Want results from more Discord servers?
Add your server