Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion modules/querying/pages/data-modification-statements.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ will produce the following result:
== `INSERT INTO` Statement

The `INSERT INTO` statement adds edges or vertices to the graph.
When the ID value(s) for the inserted vertex/edge match those of an existing vertex/edge, the new values will overwrite the old values.
When the ID value(s) of the inserted vertex or edge match an existing one, the new value(s) are updated depending on the attribute type:

* **Primitive attributes** — the new value will overwrite the old value.
* **Collection attributes (`LIST`, `SET`, `MAP`)** — the new value(s) are appended to the old value.
To insert an edge, its endpoint vertices must already exist, either before running the query or inserted earlier in that query.
The `INSERT INTO` statement can be used as a query-body-level statement or a DML-sub statement.

Expand Down