apoc.diff.nodes
Syntax |
|
||
Description |
Returns a |
||
Arguments |
Name |
Type |
Description |
|
|
The first node to compare against the second node. |
|
|
|
The second node to compare against the first node. |
|
Returns |
|
Usage Examples
The examples in this section are based on the following sample graph:
MERGE (joe:Person {name: "Joe", dateOfBirth: datetime("1981-09-02")})
MERGE (ryan:Person {name: "Ryan", twitter: "@ryguyrg"});
MATCH (joe:Person {name: "Joe"})
MATCH (ryan:Person {name: "Ryan"})
RETURN apoc.diff.nodes(joe, ryan) AS output;
output |
---|
{leftOnly: {dateOfBirth: 1981-09-02T00:00Z}, inCommon: {}, different: {name: {left: "Joe", right: "Ryan"}}, rightOnly: {twitter: "@ryguyrg"}} |