Allow ancestor/children links in Content Areas in Content Graph
I am looking to get the parent/children of a content item that is used within a Content Area to support a hierarchical relationship. Currently, it is not possible to use the _link property on Content Areas within Content Graph.
In this query:
query MyQuery {
MyPage(where:{ContentLink:{Id:{eq: 1119}}}) {
item {
ContentLink {
Id
}
_link(type: ANCESTORS) {
MyParentPage {
items {
Url
}
}
}
}
}
MyBlock(where:{ContentLink:{Id: {eq:1127}}}) {
items {
Cards {
ContentLink {
Id
Expanded {
_link(type: ANCESTORS) {
MyParentPage {
items {
Url
}
}
}
}
}
}
}
}
}
In the first query, we get back the parent items as expected, but in the second query we do not get any data for the _link. We should get back the same data in both.
2
votes
