You can try MERGE statement with null value.
MERGE (n:StopExecution {id: $not_a_valid_param})
This will throw an exception and aborts the transaction as you cannot do a MERGE with null values.
marcelix161:
match p = (g:Id {start_marker: 1})-[MINST]->(leaf)
with *, relationships(p) as MINST
where not (leaf)-[:MINST]->()
return leaf
First, I feel you are missing a ":" in the relationship part in the path. Because of that it is going ...
You can leverage a python ingest utility like this ( neo4j-field/pyingest (github.com)).
This will reduce the need to write custom code to ingest the data.