Hello there, @Keto-Faster!
Hope you’re doing alright.
I believe the following query will assist you with this matter:
query{
allCards(pipeId:XXXXXXX){
edges{
node{
id
child_relations{
name
cards{
id
title
fields{
date_value
datetime_value
filled_at
float_value
indexName
name
report_value
updated_at
value
}
}
}
}
}
}
}
Hope this helps
Hi, I’m not sure if this is exactly what you want but I did this query and it showed me the connections of a card
If you want one specific you can change child_relations to child_relations(child_repo_id: xxx)
{
card(id: xxx) {
id
title
pipe {
name
}
child_relations {
repo
name
cards {
id
title
}
}
}
}
@marcos.pedrosa thanks for the input.
- This works well for querying the Pipe A that has the connected field to see Pipe B connected cards via those connected Fields.
- However, when I query Pipe B it shows no connected cards. This is because Pipe B doesn’t have the connected fields, it is Pipe A that has them.
So the question: Is it possible to reverse this query so that it works for Pipe B - to find all parent cards from specific Pipes?
@Keto-Faster
If you want to reverse the query, you can do so, but you’ll need to change the child_relations to parent_relations argument, when running the query in the Pipe B.
Hope this helps you :)
@marcos.pedrosa yes, thanks - that solved it. Perfect.