What I want to do
Query child in list from Parent.
Schema made with GrapQL:
type Parent{
nome: String! @id
children: [Child]! @hasInverse(field: parent)
}
type Child{
nome: String! @id
parent: Parent!
}
What I did
This query indeed returns all the children on a given parent.
query{
queryParent{
name
children{
name
}
}
}
but when I go on Ratel to visualize it, and do:
{
q(func: has(Parent.name)){
Parent.children
}
}
the response is empty. It knows that Parent and Child is populated on the graph, but it doesn’t return it. How should I query it?
Dgraph metadata
dgraph version
PASTE THE RESULTS OF v21.03.1
HERE.