Perform an INSERT into the table or view.
The values to insert. Pass an object to insert a single row or an array to insert multiple rows.
Named parameters
const \{ error \} = await supabase
.from('countries')
.insert(\{ id: 1, name: 'Mordor' \})
const \{ data, error \} = await supabase
.from('countries')
.insert(\{ id: 1, name: 'Mordor' \})
.select()
const \{ error \} = await supabase
.from('countries')
.insert([
\{ id: 1, name: 'Mordor' \},
\{ id: 1, name: 'The Shire' \},
])