Hi,
I have the following data set:
{
"Repository.name": "evolve",
"Repository.owner": {
"User.username": "spinelsun",
"uid": "0x51"
}
},
{
"Repository.name": "orkestro",
"Repository.owner": {
"User.username": "michalush",
"uid": "0x50"
}
}
]
when I update the repository owner of orkestro the owner does changes but the reverse owner doesn’t:
update
upsert{
query{
q(func: eq(Repository.name, "orkestro")){
v as uid
}
}
mutation {
set {
uid(v) <Repository.owner> <0x51> .
}
}
}
result after update
"repos": [
{
"Repository.name": "evolve",
"Repository.owner": {
"User.username": "spinelsun",
"uid": "0x51"
}
},
{
"Repository.name": "orkestro",
"Repository.owner": {
"User.username": "spinelsun",
"uid": "0x51"
}
}
]
but in the reverse direction, the data doesn’t update:
"users": [
{
"User.username": "michalush",
"uid": "0x50",
"~Repository.owner": [
{
"Repository.name": "orkestro"
}
]
},
{
"User.username": "spinelsun",
"uid": "0x51",
"~Repository.owner": [
{
"Repository.name": "evolve"
},
{
"Repository.name": "orkestro"
}
]
}
]
I get the same result if michalush is the owner of orkestro - orkestro should be removed from the reverse direction if the user is not the owner of it anymore.
What happens now is that in the reverse direction the data doesn’t being replaced but summed up for some reason
My question is why?