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
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() methodRelease Notes | Supabase
Supabase.js v2 release notes.
Thx!