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
2 changes: 2 additions & 0 deletions src/main/asciidoc/reference/sql/sql-create-edge.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ This makes it easier to integrate edge creation in transactions.
In such cases, if the source or target vertices don't exist, it rolls back the transaction.
An endpoint that is a document or an edge rather than a vertex, named by its RID or returned by a query, fails the statement with `Invalid vertex for edge creation: the document #5:0 is not a vertex` (a `TypeMismatchException`, answered `400` over HTTP), and no edge is stored. _(Since v26.12.1: earlier versions answered `500`, with a raw `ClassCastException` for a RID.)_

An endpoint that evaluates to `null`, such as a variable that is not set or a `LET` that holds `null`, fails the statement with `Invalid vertex for edge creation: the FROM expression evaluated to null` (or `the TO expression`), a `TypeMismatchException` answered `400` over HTTP, and no edge is stored. _(Since v26.12.1: earlier versions failed with a `NullPointerException` that had no message.)_ In the same version, `<collection> CONTAINS null` no longer fails when the collection comes from a function such as `out('E')`: it is true only when the collection holds a `null` element.

*Examples*

* Create a new edge type and an edge of the new type:
Expand Down
Loading