What is the recommended schema for parent/child hierarchical relationships in DGraph/Slash?
I updated the demo Task schema to point to itself for a hierarchical, parent/child relationship for tasks:
type Task {
id: ID!
title: String! @search(by:[fulltext])
completed: Boolean! @search
user: User!
parent: Task
}
I can access the Parent value in Slash’s API Explorer queries when querying a task… but I can’t query tasks via a “Parent” query filter. I can’t use API Explorer to “return all tasks whose parent task id = 123”?
Thanks.