Can I update fields with the @id directive?

Try it in JSON format:

set {
  "uid": $input.userId,
  "email": $input.userName,
  "role": {
    id: $input.roleId
  }
}

Just curious if this works…

J