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

  1. Back4App
  2. 🇧🇸 Bahamas
Public

11
10
11
10
  • 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": "47",
          "cityId": 3571523,
          "country": "Bahamas",
          "countryCode": "BS",
          "createdAt": "2019-12-12T19:00:34.240Z",
          "featureCode": "PPLA",
          "id": "VLE4KvNAFJ",
          "location": {
            "latitude": 25.06667,
            "longitude": -78.05
          },
          "name": "San Andros",
          "population": 7800,
          "updatedAt": "2019-12-12T19:00:34.240Z"
        },
        {
          "ACL": null,
          "adminCode": "49",
          "cityId": 3571650,
          "country": "Bahamas",
          "countryCode": "BS",
          "createdAt": "2019-12-12T19:00:34.240Z",
          "featureCode": "PPLA",
          "id": "2mXBCjV5pS",
          "location": {
            "latitude": 23.64967,
            "longitude": -74.84157
          },
          "name": "Port Nelson",
          "population": 91,
          "updatedAt": "2019-12-12T19:00:34.240Z"
        },
        {
          "ACL": null,
          "adminCode": "37",
          "cityId": 3571913,
          "country": "Bahamas",
          "countryCode": "BS",
          "createdAt": "2019-12-12T19:00:34.240Z",
          "featureCode": "PPLA",
          "id": "7QPsuykCZF",
          "location": {
            "latitude": 26.54124,
            "longitude": -77.0636
          },
          "name": "Marsh Harbour",
          "population": 5314,
          "updatedAt": "2019-12-12T19:00:34.240Z"
        }
      ]
    }
  }
}