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

  1. Back4App
  2. 🇨🇦 Canada
Public

11
12
11
12
  • 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
21
query allCities {
      cities (skip: 0, limit: 3) {
        results {
          ACL
          adminCode
          cityId
          country
          countryCode
          createdAt
          featureCode
          id
          location {
            latitude
            longitude
          }
          muni
          name
          population
          updatedAt
        }
      }
    }
{
  "data": {
    "cities": {
      "results": [
        {
          "ACL": null,
          "adminCode": "10",
          "cityId": 5885150,
          "country": "Canada",
          "countryCode": "CA",
          "createdAt": "2019-12-12T19:03:03.393Z",
          "featureCode": "PPL",
          "id": "hv8OFM1JP2",
          "location": {
            "latitude": 45.35008,
            "longitude": -72.93244
          },
          "muni": "55008",
          "name": "Ange-Gardien",
          "population": 2420,
          "updatedAt": "2019-12-12T19:03:03.393Z"
        },
        {
          "ACL": null,
          "adminCode": "02",
          "cityId": 5882534,
          "country": "Canada",
          "countryCode": "CA",
          "createdAt": "2019-12-12T19:03:03.392Z",
          "featureCode": "PPL",
          "id": "vgjT56weNm",
          "location": {
            "latitude": 49.23298,
            "longitude": -121.76926
          },
          "muni": null,
          "name": "Agassiz",
          "population": 4738,
          "updatedAt": "2019-12-12T19:03:03.392Z"
        },
        {
          "ACL": null,
          "adminCode": "10",
          "cityId": 5882428,
          "country": "Canada",
          "countryCode": "CA",
          "createdAt": "2019-12-12T19:03:03.392Z",
          "featureCode": "PPL",
          "id": "ORp2dZ6J50",
          "location": {
            "latitude": 46.05007,
            "longitude": -71.08235
          },
          "muni": "31056",
          "name": "Adstock",
          "population": 2643,
          "updatedAt": "2019-12-12T19:03:03.392Z"
        }
      ]
    }
  }
}