diff --git a/src/main/asciidoc/reference/sql/sql-create-edge.adoc b/src/main/asciidoc/reference/sql/sql-create-edge.adoc index 11d1e16d3..4f082493e 100644 --- a/src/main/asciidoc/reference/sql/sql-create-edge.adoc +++ b/src/main/asciidoc/reference/sql/sql-create-edge.adoc @@ -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, ` 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: