Using this ticket as a reference I attempted to do a similar query in graphQuery: Content relationship fields inside a group
My structure is this:
code_walkthrough
is the main document-type
there is a group type slice lines
within this.
each lines
has a content relationship link child_attributes
child_attributes
links to only the type child_attribute_group
a given child_attribute_group
has slice attributes
that is of the group type.
I have been unable to get the linked child_attributes
to return in my queries. I have tried various different shapes, including trying to use fetchLinks, with no success. I am able to get other properties inside lines
etc. but never the linked relationship.
Here is the graphQuery syntax I constructed using the linked community topic as a reference. Am I doing something wrong or is this not possible? I know I could make a separate query to get the child_attributes
but I'm trying to do it all in one. Thank you!
{
code_walkthrough {
...code_walkthroughFields
lines {
child_attributes {
...on child_attribute_group {
...child_attribute_groupFields
}
}
}
}
}