Hello guys,
my question is if there is a way to ignore a MERGE-line if a variable "if not exists".
I have many xml-Files with some fields that dont exist in all my files, so I have to think about a solution
with an option to ignore MERGE-Code.
Example:
call apoc.load.xml("file:///NCT0000xxxx/NCT00000102.xml") yield value
with value._children as root
...............
with [x in title where x._type = 'title'][0] as title,
\[x in nctid where x.\_type \= 'nct\_id'\]\[0\] as nctid,
\[x in mstitle where x.\_type \= 'title'\]\[0\] as mstitle,
\[x in participantslist where x.\_type \= 'participants'\]\[0\] as participants
MERGE(m:Milestone{title_name:mstitle._text})
Some files dont have the "mstitle-field", so I got the error:
Neo.ClientError.Statement.SemanticError
Cannot merge the following node because of null property value for 'title_name': (:Period {title_name: null})