how to set multiple type to node in json format, like in rdf we set the multiple type as following
{
set {
_:a <name> "Garfield" .
_:a <dgraph.type> "Pet" .
_:a <dgraph.type> "Animal" .
}
}
how to set multiple type to node in json format, like in rdf we set the multiple type as following
{
set {
_:a <name> "Garfield" .
_:a <dgraph.type> "Pet" .
_:a <dgraph.type> "Animal" .
}
}
Something like this
{
"set": [
{
"name": "Garfield",
"dgraph.type": ["Pet", "Animal"],
}
]
}
Thanks