Dart Reference v2.0

Insert data

Perform an INSERT into the table or view.

Parameters
    values
    REQUIRED
    Map<String, dynamic> or List<Map<String, dynamic>>

    The values to insert. Pass an object to insert a single row or an array to insert multiple rows.


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