Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
query = graph
.match(:n, from.class.name, id: from.id)
.to(:r, type)
.match(:m, to.class.name)
.delete(:r)
query.to_cypher
# => "MATCH (n:Task {id: 'c9bc52a0-c436-499c-954c-da40e82f50b2'}) -[r:blocked_by]-> (m:Task) DELETE r"
query.execute
# => []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment