https://github.com/dgraph-io/dgraph/blob/master/query/query_test.go#L1655
Here is how the JSON output looks:
{
"person": [
{
"address": "31, 32 street, Jupiter",
"age": 38,
"alive": true,
"friend": [
{
"address": "21, mark street, Mars",
"age": 15,
"name": "Rick Grimes"
},
{},
{},
{},
{}
],
"name": "Michonne",
"survival_rate": 98.99
}
]
}
Some friends have some invalid data which is why we see a bunch of {}
. I wonder if we should just omit these empty {}
, unless the user is asking for _uid_
. What do you all think? @core-devs Is it required by GraphQL to list these empty {}
?