Skip to main content
Module

x/supabase/mod.ts>PostgrestQueryBuilder#insert

An isomorphic Javascript client for Supabase.
Go to Latest
method PostgrestQueryBuilder.prototype.insert
Re-export
import { PostgrestQueryBuilder } from "https://deno.land/x/supabase@1.3.1/mod.ts";

Performs an INSERT into the table.

Parameters

values: Partial<T> | Partial<T>[]

The values to insert.

optional
options: { returning?: "minimal" | "representation"; count?:
| null
| "exact"
| "planned"
| "estimated"
; }

By default the new record is returned. Set this to 'minimal' if you don't need this value.

Parameters

values: Partial<T> | Partial<T>[]
optional
options: { upsert?: boolean; onConflict?: string; returning?: "minimal" | "representation"; count?:
| null
| "exact"
| "planned"
| "estimated"
; }