The Database Hub | Back4App
The Database Hub | Back4App
How it works
  • Log In
  • Sign Up

  1. Back4App
  2. 🇧🇷 API Estados e Cidades do Brasil
Public

37
105
37
105
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All StateProvinces

This GraphQL query fetches All StateProvinces


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
query allStateProvinces {
      stateProvinces (skip: 0, limit: 3) {
        results {
          ACL
          cities (skip: 0, limit: 3) {
            results {
              id
            }
          }
          code
          country {
            id
          }
          createdAt
          geonameid
          id
          name
          native
          updatedAt
        }
      }
    }
{
  "data": {
    "stateProvinces": {
      "results": [
        {
          "ACL": null,
          "cities": {
            "results": [
              {
                "id": "06CAmSgdxy"
              },
              {
                "id": "0X8KQGJdAZ"
              },
              {
                "id": "0lL0rDgy7J"
              }
            ]
          },
          "code": "BR.22",
          "country": {
            "id": "bnEB9QdocE"
          },
          "createdAt": "2020-05-06T20:07:30.655Z",
          "geonameid": "3390290",
          "id": "ZVh9yHRxVB",
          "name": "Rio Grande do Norte",
          "native": "Rio Grande do Norte",
          "updatedAt": "2020-05-06T22:11:45.396Z"
        },
        {
          "ACL": null,
          "cities": {
            "results": [
              {
                "id": "06mm8Iin6m"
              },
              {
                "id": "09Sjz8AsyB"
              },
              {
                "id": "0dLUEAwaFr"
              }
            ]
          },
          "code": "BR.20",
          "country": {
            "id": "bnEB9QdocE"
          },
          "createdAt": "2020-05-06T20:07:31.420Z",
          "geonameid": "3392213",
          "id": "RosYHbHWjD",
          "name": "Piaui",
          "native": "Piauí",
          "updatedAt": "2020-05-06T22:15:02.281Z"
        },
        {
          "ACL": null,
          "cities": {
            "results": [
              {
                "id": "0iJ3vS3rb3"
              },
              {
                "id": "0yEb3N54rS"
              },
              {
                "id": "1CrP3tO4tL"
              }
            ]
          },
          "code": "BR.30",
          "country": {
            "id": "bnEB9QdocE"
          },
          "createdAt": "2020-05-06T20:07:32.121Z",
          "geonameid": "3392268",
          "id": "Z12kSDXE2A",
          "name": "Pernambuco",
          "native": "Pernambuco",
          "updatedAt": "2020-05-06T22:14:59.536Z"
        }
      ]
    }
  }
}