We want to be able to track changes to our DGraph schema (via export) and use it to maintain an accurate model of our graph via draw.io or some other graphing tool (recommendations?).
I can fetch the schema using:
schema {
type
index
reverse
tokenizer
}
but how do I capture the relationships between nodes and edges?
You will be able to pull the schema, edit it and so on. However, there is no way you automatically pull relationships. You’ll have to build your queries based on the schema.
But it’s easy to start debugging your Nodes.
Let’s say you have a Node with the predicate (attribute) “Name”. So you would build:
Expanding predicates you will know that the Node that has the word “Name” has other predicates. You’ll collect this list and then use it as you need it.
Or use Filters: Let’s say you use “Name” on more than one node. And know that the Node you are looking for has another known predicate. Then you search for one and filter for another.