(I thought this part was about issue with normalize, ignore it) Yeah, it is. When you use aliases with equal naming you gonna have bad time, as you have a single root entity. Set each one unique for a moment. It flats but also try to “smash”.
But actually it should return a list tho. e.g:
{
"productsUid": [
"0x4b928",
"0x29f",
"0x26cbf",
"0x9d358",
"0xe"
]
}
It works fine in https://play.dgraph.io
This query:
{
TEST as var(func: uid("0x4b928") )
director(func: uid(TEST)) @normalize {
productsUid : uid
director.film {
productsUid : uid
initial_release_date
starring(first: 2) {
performance.actor {
productsUid : uid
}
performance.character {
productsUid : uid
}
}
country {
productsUid : uid
}
}
}
}