Skip to content

How do I upsert multiple records #2174

Answered by inian
milestones95 asked this question in Questions
Discussion options

You must be logged in to vote

If you just want to update the records you can do this @milestones95

supabase.from('orders')
.update({ status: "newstatus" })
.in('id', [1, 3, 4])

If you want to upsert, you can modify the above example to use upsert

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@milestones95
Comment options

@milestones95
Comment options

Answer selected by inian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants