JavaScript: Return data after inserting

Perform a SELECT on the query result.

Parameters

Examples

With `upsert()`

const \{ data, error \} = await supabase
  .from('countries')
  .upsert(\{ id: 1, name: 'Algeria' \})
  .select()