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

  1. Back4App
  2. USA Cities by State
Public

87
249
87
249
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All US

This GraphQL query fetches All US


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
query allUS {
      us (skip: 0, limit: 3) {
        results {
          ACL
          adminCode
          cityId
          containingState {
            id
          }
          country
          createdAt
          featureCode
          id
          location {
            latitude
            longitude
          }
          muni
          name
          population
          updatedAt
        }
      }
    }
{
  "data": {
    "us": {
      "results": [
        {
          "ACL": null,
          "adminCode": "ME",
          "cityId": 4956485,
          "containingState": {
            "id": "zz5CncDtzP"
          },
          "country": "US",
          "createdAt": "2019-12-11T12:40:58.844Z",
          "featureCode": "PPL",
          "id": "J1iwp94vwF",
          "location": {
            "latitude": 44.61841,
            "longitude": -67.74416
          },
          "muni": "00380",
          "name": "Addison",
          "population": 1257,
          "updatedAt": "2019-12-11T12:40:58.844Z"
        },
        {
          "ACL": null,
          "adminCode": "ME",
          "cityId": 4832356,
          "containingState": {
            "id": "zz5CncDtzP"
          },
          "country": "US",
          "createdAt": "2019-12-11T12:40:58.844Z",
          "featureCode": "PPL",
          "id": "y0HSDHb1iZ",
          "location": {
            "latitude": 43.26592,
            "longitude": -70.8645
          },
          "muni": "04720",
          "name": "Berwick",
          "population": 2187,
          "updatedAt": "2019-12-11T12:40:58.844Z"
        },
        {
          "ACL": null,
          "adminCode": "ME",
          "cityId": 4956462,
          "containingState": {
            "id": "zz5CncDtzP"
          },
          "country": "US",
          "createdAt": "2019-12-11T12:40:58.844Z",
          "featureCode": "PPL",
          "id": "gw5H3rnN36",
          "location": {
            "latitude": 43.53425,
            "longitude": -70.90978
          },
          "muni": "00275",
          "name": "Acton",
          "population": 2230,
          "updatedAt": "2019-12-11T12:40:58.844Z"
        }
      ]
    }
  }
}