You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So here is what I can do in the surrealist.app using the query
Query INSERT INTO person $data ON DUPLICATE KEY UPDATE name = $input.name, surname = $input.surname;
Variables
The query above worked perfectly but I cannot reproduce using Rust SDK.
What I can do is use the insert method to create new records but can't update on duplicate key
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So here is what I can do in the surrealist.app using the query
Query
INSERT INTO person $data ON DUPLICATE KEY UPDATE name = $input.name, surname = $input.surname;
Variables
The query above worked perfectly but I cannot reproduce using Rust SDK.
What I can do is use the insert method to create new records but can't update on duplicate key
Beta Was this translation helpful? Give feedback.
All reactions