I have tried deleting a node’s type and adding new ones but it seems to do nothing.
{
delete {
<0xc> <dgraph.type> "User" .
}
}
{
set {
<0xc> <dgraph.type> "OtherType" .
}
}
I don’t know if this is even possible, but if it is I must be missing something. I can’t find anything in the docs except assigning types to a new node.
’ The type is just a regular predicate. A node can have 0 or more dgraph.type values for instance if it is a type implementing an interface then it would have a type value for both the interface and the implemented type. In DQL nodes can also have predicates and edges that are not of the type of the node although they can’t be queried through the GraphQL API.