Skip to main content
Version: v1-dev

Create data: insert()

Performs an INSERT into the table.

final data = await supabase
.from('cities')
.insert({'name': 'The Shire', 'country_id': 554});

Examples

Create a record

final data = await supabase
.from('cities')
.insert({'name': 'The Shire', 'country_id': 554});

Bulk create

final res = await supabase.from('cities').insert([
{'name': 'The Shire', 'country_id': 554},
{'name': 'Rohan', 'country_id': 555},
]);