0

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
    }
  }
}

This is the second query explore window that doesn't have the branches to access This is the first query that I can access the institutions

2
  • Bump. We've faced similar issue.
    – Mark H.
    Jun 13, 2022 at 8:30
  • let me know if you've found any solutions for this I'm also looking for the answer Jun 13, 2022 at 8:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.