I have list of banks(institutions) that each one has branches.
I'm using GraphQL API.
By the bellow code I can get the branches with associated bank(institutions):
query branches {
entries(limit: 50, section: "branches", orderBy: "dateUpdated") {
id
branchTitle: title
... on branches_standard_Entry {
branchAddress: map
bank: institution {
... on institutions_standard_Entry {
bankName: title
bankLogo: logo {
url
}
}
}
}
}
}
But when I want to access data in reverse, getting banks(institutions) and its related branches. There is no possibility or I can't find it.
So how I can get the banks(institutions) with related branches? I reach to this query:
query banks_with_branches {
entries(section: "institutions", limit: 50) {
... on institutions_standard_Entry {
bankTitle: title
hqState
}
}
}