Skip to content

Instantly share code, notes, and snippets.

@moxious
Created August 24, 2021 19:38
Show Gist options
  • Save moxious/e8ca9c26f3bf419b0afb79e269f71cca to your computer and use it in GitHub Desktop.
Save moxious/e8ca9c26f3bf419b0afb79e269f71cca to your computer and use it in GitHub Desktop.
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