Why this val() is not working? It’s not updating the username.
When I type string instead of val(newusername) it works.
user_id 4 have a username set.
upsert {
query {
checkNameNew(func: eq(user_id, "4")) {
newusername as username
}
userB as var(func: eq(user_id, "6"))
}
mutation {
set {
uid(userB) <username> val(newusername) .
}
}
}