Just started with DGraph and trying to understand a simplest mutation. This is what I have:
{
set {
_:james <personId> "jr123" .
_:james <stayed_at> "crowne_plaza" .
}
}
It created 2 nodes which was verified using:
{
persons(func:eq(personId, "jr123")) {
stayed_at
}
}
My hope/expectation was to create a single person (node) of james and a single node of crowne_plaza with an edge representing "stayed_at".
What am I missing here?