Solved

Get connected TableRecords from Card

  • 30 November 2020
  • 1 reply
  • 153 views

Userlevel 5

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"

icon

Best answer by Marcos Carvalho 3 December 2020, 14:10

View original

1 reply

Userlevel 6
Badge +6

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