Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-08-2022 03:01 PM
Hi all,
I can't find anything that looks like an error message in the data structure that comes back from apoc.cypher.runMany()
, even when I feed it a query string that's just garbage. Is there any way to see what went wrong if there is an issue with the query string? If not, how do I run multiple statements in a single round trip to neo4j in a way that lets me see errors? Do I have to make a separate request for each statement?
FYI, I'm using the node client, version 4.4.2. Thanks for your help!
-Matt
02-08-2022 03:20 PM
02-08-2022 03:44 PM
The WITH clause allows you to chain together related cypher statements so you can further process the results passed in the WITH clause.
Here is a limited example:
match (n:People{name:’Sam’})-[:OWNS]->(e:Equipment)
With e
//cypher to do something with the equipment records
//only the items listed in the with clause are in scope
Return a, b //results of processing equipment records
02-08-2022 03:42 PM
Okay, chaining WITHs together looks like it will work for my purposes. I'll leave this post up in case anyone else is in the same situation.
All the sessions of the conference are now available online