The Database Hub is home for developers who want to clone, connect, and share databases and build apps together. Cloning a database allows you to copy it to your account and give a great start to your project.
This GraphQL query fetches All Planets
xxxxxxxxxx
query allPlanets {
planets (skip: 0, limit: 3) {
results {
ACL
climate {
...on Element {
value
}
}
createdAt
diameter
films (skip: 0, limit: 3) {
results {
id
}
}
gravity
id
name
orbitalPeriod
population
residents (skip: 0, limit: 3) {
results {
id
}
}
rotationPeriod
species (skip: 0, limit: 3) {
results {
id
}
}
surfaceWater
terrain {
...on Element {
value
}
}
updatedAt
}
}
}
xxxxxxxxxx
{
"data": {
"planets": {
"results": [
{
"ACL": null,
"climate": [
{
"value": "temperate"
},
{
"value": "tropical"
}
],
"createdAt": "2019-12-13T19:42:31.014Z",
"diameter": 10200,
"films": {
"results": [
{
"id": "GteveE4ytb"
}
]
},
"gravity": "1 standard",
"id": "JNgiSeuJwR",
"name": "Yavin IV",
"orbitalPeriod": 4818,
"population": 1000,
"residents": {
"results": []
},
"rotationPeriod": 24,
"species": {
"results": []
},
"surfaceWater": 8,
"terrain": [
{
"value": "jungle"
},
{
"value": "rainforests"
}
],
"updatedAt": "2019-12-13T19:42:35.983Z"
},
{
"ACL": null,
"climate": [
{
"value": "murky"
}
],
"createdAt": "2019-12-13T19:42:31.017Z",
"diameter": 8900,
"films": {
"results": [
{
"id": "RbyX4ouadm"
},
{
"id": "SFHc9Y4gXA"
},
{
"id": "mRAWzGNBfG"
}
]
},
"gravity": null,
"id": "lZHyO0MIr6",
"name": "Dagobah",
"orbitalPeriod": 341,
"population": null,
"residents": {
"results": []
},
"rotationPeriod": 23,
"species": {
"results": []
},
"surfaceWater": 8,
"terrain": [
{
"value": "swamp"
},
{
"value": "jungles"
}
],
"updatedAt": "2019-12-13T19:42:35.983Z"
},
{
"ACL": null,
"climate": [
{
"value": "arid"
}
],
"createdAt": "2019-12-13T19:42:30.901Z",
"diameter": 10465,
"films": {
"results": [
{
"id": "GteveE4ytb"
},
{
"id": "NtEIWnlRYH"
},
{
"id": "RbyX4ouadm"
}
]
},
"gravity": "1 standard",
"id": "PL36fSGLoW",
"name": "Tatooine",
"orbitalPeriod": 304,
"population": 200000,
"residents": {
"results": [
{
"id": "0teUVBC5WU"
},
{
"id": "1bnytxJvoC"
},
{
"id": "4ce6iNwMJk"
}
]
},
"rotationPeriod": 23,
"species": {
"results": []
},
"surfaceWater": 1,
"terrain": [
{
"value": "desert"
}
],
"updatedAt": "2019-12-13T19:42:35.983Z"
}
]
}
}
}
We use cookies to provide our services and for analytics and marketing. To find out more about our use of cookies, please see our Terms of Service and Privacy Policy . By continuing to browse our website, you agree to our use of cookies.