Return data from insert()?
const { data, error } = await supabase
.from('users')
.insert([
{ some_column: 'someValue' },
{ some_column: 'otherValue' },
])
does the method above actually return data? if so how come im getting undefined for that data after calling the function. Am i missing something?
NOTE: I tried both insert() and upsert(), I also tried to pass upsert as a parameter to insert()
NOTE: the data is being added to the table with no issues.
.from('users')
.insert([
{ some_column: 'someValue' },
{ some_column: 'otherValue' },
])
does the method above actually return data? if so how come im getting undefined for that data after calling the function. Am i missing something?
NOTE: I tried both insert() and upsert(), I also tried to pass upsert as a parameter to insert()
NOTE: the data is being added to the table with no issues.
