There must be something wrong with schemas or the way the individual records are fetched.
- Go to https://swapi-graphql.netlify.app/
- Try any query, requesting different fields.
Example:
query MyQuery {
allPlanets {
edges {
cursor
node {
climates
created
diameter
edited
name
}
}
}
}
- Observe that most of the fields return as
null
{
"data": {
"allPlanets": {
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uOjA=",
"node": {
"climates": null,
"created": null,
"diameter": null,
"edited": null,
"name": "Tatooine"
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uOjE=",
"node": {
"climates": null,
"created": null,
"diameter": null,
"edited": null,
"name": "Alderaan"
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uOjI=",
"node": {
"climates": null,
"created": null,
"diameter": null,
"edited": null,
"name": "Yavin IV"
}
},
...
...
]
}
}
There must be something wrong with schemas or the way the individual records are fetched.
Example:
null{ "data": { "allPlanets": { "edges": [ { "cursor": "YXJyYXljb25uZWN0aW9uOjA=", "node": { "climates": null, "created": null, "diameter": null, "edited": null, "name": "Tatooine" } }, { "cursor": "YXJyYXljb25uZWN0aW9uOjE=", "node": { "climates": null, "created": null, "diameter": null, "edited": null, "name": "Alderaan" } }, { "cursor": "YXJyYXljb25uZWN0aW9uOjI=", "node": { "climates": null, "created": null, "diameter": null, "edited": null, "name": "Yavin IV" } }, ... ... ] } }