---
id: insert
title: "insert"
slug: insert
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Performs an INSERT into the table.
## Parameters
-
values
required
Partial | array
The values to insert.
-
__namedParameters
required
object
No description provided.
Properties
-
upsert
required
boolean
If `true`, performs an UPSERT.
-
returning
required
minimal | representation
By default the new record is returned. Set this to 'minimal' if you don't need this value.
-
onConflict
required
undefined | string
By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint.