Created
August 24, 2021 19:38
-
-
Save moxious/e8ca9c26f3bf419b0afb79e269f71cca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CALL { | |
USE fabric.db1 | |
MATCH (p:Person) | |
RETURN { id: p.id, name: p.name, age: p.age } as result | |
} | |
CALL { | |
USE fabric.db2 | |
WITH result | |
MERGE (p:Person { id: result.id }) | |
SET p += result | |
RETURN count(p) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment