How can you access individual values in the ON DUPLICATE KEY UPDATE section of an INSERT INTO statement in SurrealDB?
In SQL you can access it with the VALUES operator in the ON DUPLICATE KEY UPDATE as shown here:
INSERT INTO users (id, username, email)
VALUES (1, 'new_user', 'new@example.com')
ON DUPLICATE KEY UPDATE
email = VALUES(email);
Is there a way to do the same in SurrealDB?
I tried to do it with the VALUES operator as you can in SQL. I was however not able to get this to work.