I am trying to create a relation at the same time I create a node. I am using javascript neo4j driver.
When I run the query in neo4j desktop it works but not when using the driver.
session.run(`
match (a:Node1) where a.name = "Jon Doe"
create (b:Node2)<-[r:Reln]-(a)
set b.name = ${args.name}
return a,b,r
`)