query Instances(
  $dgSlug: String!
  $sSlug: String!
  $iName: String!
  $biName: String!
) {
  portal {
    id
    deploymentGroups(slug: $dgSlug) {
      id
      name
      slug
      status
      services(slug: $sSlug) {
        id
        name
        slug
        status
        instances(name: $iName) {
          id
          name
          status
        }
        branches {
          name
          slug
          instances(name: $biName) {
            id
            name
            status
          }
        }
      }
    }
  }
}
