Skip to content

Commit a92eae4

Browse files
Victor LeeVictor Lee
Victor Lee
authored and
Victor Lee
committed
DOC-1906-warning-empty-primary-id 3.8
1 parent f0ae356 commit a92eae4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

modules/ddl-and-loading/pages/defining-a-graph-schema.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ There are two ways of specifying the primary ID/key:
9191
. `PRIMARY KEY` syntax.
9292
This syntax is modeled after SQL.
9393

94+
[IMPORTANT]
95+
====
96+
When loading or inserting vertices, take care not to accidentally leave the primary ID field empty.
97+
An empty string in the primary ID field is accepted as a valid input.
98+
====
99+
94100

95101
==== `PRIMARY_ID` and `WITH primary_id_as_attribute`
96102

modules/ddl-and-loading/partials/load-statement.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ If the vertex data is loaded later, it will be automatically merged with the aut
6464
The user can disable this feature and perform regular referential integrity checking by setting the `VERTEX_MUST_EXIST` option to `true`.
6565
====
6666

67+
[IMPORTANT]
68+
====
69+
Take care that your data sources do not have unintentional empty fields.
70+
An empty string in the primary ID field is accepted as a valid input.
71+
====
72+
6773
=== Examples
6874

6975
Suppose we have the following vertex and edge types:

0 commit comments

Comments
 (0)