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
104
37
104
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Cities

This GraphQL query fetches All Cities


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
query allCities {
      cities (skip: 0, limit: 3) {
        results {
          ACL
          code
          country {
            id
          }
          createdAt
          geonameid
          id
          name
          native
          state {
            id
          }
          updatedAt
        }
      }
    }
{
  "data": {
    "cities": {
      "results": [
        {
          "ACL": null,
          "code": "BR.06.2314102",
          "country": {
            "id": "bnEB9QdocE"
          },
          "createdAt": "2020-05-06T20:07:51.786Z",
          "geonameid": "3385105",
          "id": "l4LIHcESjQ",
          "name": "Vicosa Do Ceara",
          "native": "Viçosa do Ceará",
          "state": {
            "id": "WFRWTnXhia"
          },
          "updatedAt": "2020-05-07T12:47:11.047Z"
        },
        {
          "ACL": null,
          "code": "BR.06.2314003",
          "country": {
            "id": "bnEB9QdocE"
          },
          "createdAt": "2020-05-06T20:07:53.032Z",
          "geonameid": "3385462",
          "id": "Tky8Asu38p",
          "name": "Varzea Alegre",
          "native": "Várzea Alegre",
          "state": {
            "id": "WFRWTnXhia"
          },
          "updatedAt": "2020-05-07T12:47:12.604Z"
        },
        {
          "ACL": null,
          "code": "BR.06.2313708",
          "country": {
            "id": "bnEB9QdocE"
          },
          "createdAt": "2020-05-06T20:07:54.332Z",
          "geonameid": "3385832",
          "id": "1M3HK1G7DP",
          "name": "Umari",
          "native": "Umari",
          "state": {
            "id": "WFRWTnXhia"
          },
          "updatedAt": "2020-05-07T12:47:13.740Z"
        }
      ]
    }
  }
}