0
  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
          }
        }
      }
      state: location {
        ... on locations_Category {
          stateName: title
          stateId: stateId
        }
      }
    }
  }
}

Here 3 table introduce one is categories which have all states and city and one is entries which have bank and branches so want help on firing this query as reverse what i need as output i want a list of states inside that i need count of it's city and how many branches are there in the city through graphql.

Or is there any posibility go with the categories first and then retrive it's city and branches in state.

Thing is that categories tables doesn't have any relation branches have relation with category while adding branch we have to select location.

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.