neo4jrestclient

SET label : pass label name as parameter

五迷三道 提交于 2019-12-11 08:59:41
问题 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 回答1: You