Skip to content

Commit

Permalink
Fix rel example
Browse files Browse the repository at this point in the history
  • Loading branch information
nvitucci committed Apr 25, 2024
1 parent 9221c61 commit e5610b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ROOT/pages/write/relationship.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ df.write
.option("relationship", "BOUGHT")
// Use `keys` strategy
.option("relationship.save.strategy", "keys")
// Overwrite source nodes and assign them a label
// Match source nodes with the specified label
.option("relationship.source.save.mode", "Match")
.option("relationship.source.labels", ":Customer")
// Map the DataFrame columns to node properties
.option("relationship.source.node.properties", "name,surname,customerID:id")
// Node keys are mandatory for overwrite save mode
.option("relationship.source.node.keys", "customerID:id")
// Overwrite target nodes and assign them a label
// Match target nodes with the specified label
.option("relationship.target.save.mode", "Match")
.option("relationship.target.labels", ":Product")
// Map the DataFrame columns to node properties
Expand Down

0 comments on commit e5610b2

Please sign in to comment.