Update-Neo4j Cmdlet
Updates Neo4j data.
Syntax
Update-Neo4j [parameters]
Remarks
The Update-Neo4j cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Neo4j data.
$conn = Connect-Neo4j -server "localhost" -port "7474" -user "neo4j" -password "password" Update-Neo4j -Connection $conn -Table "ProductCategory" -Columns @("CategoryName") -Values @("Jon Doe") -Id "6"The Where parameter can also be used to specify the primary key of the table:
Update-Neo4j -Connection $conn -Table "ProductCategory" -Columns @("CategoryName") -Values @("Jon Doe") -Where "Id = '6'"The primary key can also be passed to the cmdlet along the pipeline:
Select-Neo4j -Connection $conn -Table ProductCategory -Where "CategoryOwner = 'Bob'" | Update-Neo4j -Columns @("CategoryOwner") -Values @("Bob 2")