SupabaseS
Supabase4y ago
Noob

Supabase JS RC Insert returns undefined but database have result?

const { data: record, error } = await supabase
.from('Blog')
.insert({title: 'hi'}).single();

if (error) {
console.log(error);
}
console.log(record); // undefined?
Was this page helpful?