My Table has four columns (id (pk), name, email, u...
# javascript
z
My Table has four columns (id (pk), name, email, url) Is it possible to update the url by doing something like
Copy code
js
supabase.from('profiles').upsert({id: 1, url:'something'})
or is it necessary to do an update instead of an upsert like
Copy code
js
supabase.from('profiles').update({url:'something').eq{'id': 1}
s
If you are updating the URL of a specific id then you would use the second option as that wouldn't add a new row if the id doesn't exists already.