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

  1. Back4App
  2. 🇧🇷 Brazil List of Cities
Public

24
29
24
29
  • 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
20
query allCities {
      cities (skip: 0, limit: 3) {
        results {
          ACL
          adminCode
          cityId
          country
          countryCode
          createdAt
          featureCode
          id
          location {
            latitude
            longitude
          }
          name
          population
          updatedAt
        }
      }
    }
{
  "data": {
    "cities": {
      "results": [
        {
          "ACL": null,
          "adminCode": "13",
          "cityId": 3384986,
          "country": "Brazil",
          "countryCode": "BR",
          "createdAt": "2019-12-12T18:57:41.243Z",
          "featureCode": "PPL",
          "id": "7v3NjB40xD",
          "location": {
            "latitude": -3.46222,
            "longitude": -44.87056
          },
          "name": "Vitória do Mearim",
          "population": 15775,
          "updatedAt": "2019-12-12T18:57:41.243Z"
        },
        {
          "ACL": null,
          "adminCode": "20",
          "cityId": 3385592,
          "country": "Brazil",
          "countryCode": "BR",
          "createdAt": "2019-12-12T18:57:41.243Z",
          "featureCode": "PPL",
          "id": "zqFZS304sl",
          "location": {
            "latitude": -6.4075,
            "longitude": -41.74556
          },
          "name": "Valença do Piauí",
          "population": 15881,
          "updatedAt": "2019-12-12T18:57:41.243Z"
        },
        {
          "ACL": null,
          "adminCode": "13",
          "cityId": 3384983,
          "country": "Brazil",
          "countryCode": "BR",
          "createdAt": "2019-12-12T18:57:41.243Z",
          "featureCode": "PPL",
          "id": "uatEQbBneN",
          "location": {
            "latitude": -4.04238,
            "longitude": -45.23777
          },
          "name": "Vitorino Freire",
          "population": 13267,
          "updatedAt": "2019-12-12T18:57:41.243Z"
        }
      ]
    }
  }
}