using (var driver = GraphDatabase.Driver("bolt://localhost", AuthTokens.Basic("neo4j", "neo4j")))
using (var session = driver.Session())
{
foreach (string element in Array)
{
try
{
if (element == "")
{
}
else
{
session.Run(element);
}
}
catch (Exception ex)
{
throw ex;
}
}
this is my code, and when one statement is wrong in the list, it will keep return error even my next statement is right in the list. I wonder how can i figure it out ?