Use upsert(dataset) or insert(dataset, {upsert true})

Is there a difference between these two, or is one of them going to be deprecated? Both are in the docs.
2 Replies
silentworks
silentworks3y ago
Use upsert as the other will be deprecated. In the release notes: https://supabase.com/docs/reference/javascript/release-notes#all-changes it states that Some features are now obsolete: - upserting through the .insert() method
Release Notes | Supabase
Supabase.js v2 release notes.
jkohlin
jkohlinOP3y ago
Thx!

Did you find this page helpful?