Okay. I got it.
You are trying to mix GraphQL and DQL procedures. hasInverse is a ~feature that you can automatically link both nodes/entities during a mutation. But in DQL this doesn’t work. You need to follow the standard logic used in GraphQL to get this to work.
I have not implemented this function. I can only speak theoretically about how it works. I strongly believe that you need to write all relations on all nodes.
e.g.
{
"set": [
{
"uid": "_:Newbrand",
"Website.brand": {
"uid": "0x12345",
"Brand.websites": {
"uid": "_:Newbrand"
}
},
"Website.name": "Test Name",
"Website.domain": "domain.com"
"dgraph.type": "Website"
}
]
}