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

  1. Back4App
  2. 🇧🇯 Benin
Public

10
10
10
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
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": 2392505,
          "country": "Benin",
          "countryCode": "BJ",
          "createdAt": "2019-12-12T18:55:40.784Z",
          "featureCode": "PPL",
          "id": "gVRIJwqYTL",
          "location": {
            "latitude": 9.94009,
            "longitude": 3.21075
          },
          "muni": null,
          "name": "Nikki",
          "population": 54009,
          "updatedAt": "2019-12-12T18:55:40.784Z"
        },
        {
          "ACL": null,
          "adminCode": "17",
          "cityId": 2392009,
          "country": "Benin",
          "countryCode": "BJ",
          "createdAt": "2019-12-12T18:55:40.784Z",
          "featureCode": "PPLA",
          "id": "S6VACemKwP",
          "location": {
            "latitude": 6.73618,
            "longitude": 2.65866
          },
          "muni": null,
          "name": "Sakété",
          "population": 30111,
          "updatedAt": "2019-12-12T18:55:40.784Z"
        },
        {
          "ACL": null,
          "adminCode": "08",
          "cityId": 2393917,
          "country": "Benin",
          "countryCode": "BJ",
          "createdAt": "2019-12-12T18:55:40.784Z",
          "featureCode": "PPL",
          "id": "6BCgmrMq1k",
          "location": {
            "latitude": 10.56583,
            "longitude": 1.72444
          },
          "muni": null,
          "name": "Guilmaro",
          "population": 6516,
          "updatedAt": "2019-12-12T18:55:40.784Z"
        }
      ]
    }
  }
}