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
You need to add an
include
clause if you want relations to be loaded, even if you provide a value for them originallyI 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?
Outside of "data" curly braces. Should get auto complete for include/select/etc.
this works! thank you very much!