I have a query like this:
unwind {data} as row with row MERGE (p:Book{guid:row.bookGuid}) set p.name=row.name, p:Science
I want to pass the label 'Science' as a parameter as this label is not same for all the rows which I am passing in {data}.
I tried below query, but this is throwing syntax error.
with parameter like: { guid:1, name:"testName1",label1:"Histroy"}
unwind {data} as row with row MERGE (p:Book{guid:row.bookGuid}) set p.name=row.name, p:row.label1
Any workaround?
Thanks