You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `id` property of the nodes in the `persons` group will be stored as `long` type, while the `id` property of the nodes in the `games` group will be stored as `string` type, as the global `id-type` is a string.
1424
1427
====
1425
1428
1429
+
[role=label--new-2025.01.0 label--block-only]
1430
+
== Applying changes to data via CSV files
1431
+
1432
+
You can use CSV files to update your data during incremental import.
1433
+
1434
+
This feature is especially useful when you want to update existing nodes, relationships, labels, or properties in large datasets.
1435
+
To be able to use this feature, each entity in the dataset must be associated with a unique ID.
1436
+
1437
+
[NOTE]
1438
+
====
1439
+
This feature is supported only by `block` format.
1440
+
====
1441
+
1442
+
=== Set an explicit action for each row
1443
+
1444
+
You can set an explicit action for each row in the CSV file by using the `:ACTION` keyword in the header file.
1445
+
If no action is specified, the import tool works as in full import mode, creating new data.
1446
+
1447
+
The following actions are supported:
1448
+
1449
+
* `empty` = `CREATE` (default)
1450
+
* `C`, `CREATE` - Creates a new entity.
1451
+
* `U`, `UPDATE` - Updates an existing entity.
1452
+
* `D`, `DELETE` - Deletes an existing entity.
1453
+
Deleting a node also deletes its relationships (`DETACH DELETE`).
1454
+
1455
+
1456
+
.Using actions in CSV files to update data
1457
+
[source, cypher, role="nocopy"]
1458
+
----
1459
+
:ACTION,personId:ID,name,:LABEL
1460
+
CREATE,1,"Keanu Reeves",Actor
1461
+
UPDATE,2,"Laurence Fishburne",Actor
1462
+
DELETE,4
1463
+
----
1464
+
1465
+
=== Update existing labels
1466
+
1467
+
You can add or remove one or more labels from an existing node by prepending the clause `LABEL` in the header with a a `+` (default) or `-`:
1468
+
1469
+
* `:+LABEL` - Add one or more labels to an existing node.
1470
+
* `:-LABEL` - Remove one or more labels (if they exist) from an existing node.
1471
+
1472
+
Multiple labels are separated by a semicolon.
1473
+
1474
+
For example, a file could have the following format:
0 commit comments