Skip to content
Merged
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
13 changes: 7 additions & 6 deletions modules/ROOT/pages/import.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1462,8 +1462,9 @@ Now use the previously defined ID spaces when connecting the actors to movies.
[[import-tool-multiple-ids]]
== Using multiple node IDs

A node header can also contain multiple `ID` columns, where the relationship data references the composite value of all those columns.
This also implies using `string` as `id-type`.
A node header can contain multiple `ID` columns.
The relationship data must then use a matching number of `START_ID` / `END_ID` columns as references to the composite value of those ID columns.
This implies using `string` as `id-type`.

For each `ID` column, you can specify to store its values as different node properties.
However, the composite value cannot be stored as a node property.
Expand Down Expand Up @@ -1498,13 +1499,13 @@ Now use both IDs when defining the relationship:
.relationships_header.csv
[source, csv]
----
:START_ID,:TYPE,:END_ID
:START_ID,:START_ID,:TYPE,:END_ID,:END_ID
----

.relationships.csv
[source, csv]
----
aa11,WORKS_WITH,bb22
aa,11,WORKS_WITH,bb,22
----
====

Expand Down Expand Up @@ -1532,13 +1533,13 @@ Now use the defined ID space when connecting John with Paul, and use both IDs in
.relationships_header.csv
[source, csv]
----
:START_ID(MyGroup),:TYPE,:END_ID(MyGroup)
:START_ID(MyGroup),:START_ID(MyGroup),:TYPE,:END_ID(MyGroup),:END_ID(MyGroup)
----

.relationships.csv
[source, csv]
----
aa11,WORKS_WITH,bb22
aa,11,WORKS_WITH,bb,22
----
====

Expand Down