Skip to main content

I'm trying to use the property ""connectedRepoItems"" in ""fields"", but even my card has one or more public table records associated, I got null values.{
card(id: ""XXX"") {fields { connectedRepoItems }
}
}answer:{
""data"": {
""card"": {
""fields"": [
{
""connectedRepoItems"": null
},
{
""connectedRepoItems"": null
},
{
""connectedRepoItems"": null"

Hey Nigel, 

 

To get the connected table records or cards, you need to query the child_relations, if it’s a child relation, or parent_relations, if it’s a parent relation :slight_smile: 

 

Like this: 

 

{
card(id: 987654321) {
fields {
name
value
}
child_relations {
id
cards {
id
title
fields {
name
value
}
}
} parent_relations {
id
cards {
id
title
fields {
name
value
}
}
}

}
}

 


Reply