I have a query being built up through python that looks something like this:
for url in urls:
q = '''Match (u:User) Where u.id=18284
Merge (:Url {{ url:"{url}" }})<-[:CONTAINS_URL]-(u)'''
tx.run(q)
It seems wasteful to have to Match on the user over and over again. Is there a way to match it once and add all the corresponding url edges in some sort of batch?