if you are forcing use of dgraph.type and not using schemaless design, then you should modify this with an additional filter check for the type like:
query query($a: string) {
query(func: uid($a)) @filter(has(dgraph.type)) {
uid
state
created
type: dgraph.type
child_groups @filter(has(dgraph.type)) {
uid
state
created
type: dgraph.type
BRC as branches @filter(has(dgraph.type))
}
}
rq(func: uid(BRC)) @filter(has(dgraph.type)) @recurse {
uid
created
state
type: dgraph.type
child_groups @filter(has(dgraph.type))
branches @filter(has(dgraph.type))
}
}
Did you read the other post I linked?? You don’t put the uid in your types. And you can’t delete it…