Hi there,
Is it possible to return an empty array in case the predicate is missing?
The query looks as the following:
{
objectives(func: uid(XXXX))
uid
objective_lead {
uid
fullName
}
}
And the query result looks currently like this:
"data": {
"objectives": [{
"uid": "XXXXX"
}]
},
But what I want is this:
"data": {
"objectives": [{
"uid": "XXXXX",
"objective_lead": []
}]
},
Thanks!