Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

neo4j remove labels , invalid input –

In the neo4j browser i try to execute the following command:

match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n

I get the following error:

    Invalid input '-': expected
  ","
  "CALL"
  "CREATE"
  "DELETE"
  "DETACH"
  "FOREACH"
  "LOAD"
  "MATCH"
  "MERGE"
  "OPTIONAL"
  "REMOVE"
  "RETURN"
  "SET"
  "UNION"
  "UNWIND"
  "USE"
  "WITH"
  <EOF> (line 1, column 44 (offset: 43))
"match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n"

Something is wrong with the use of "-" in the label, but cannot change it. How can i deal with this error?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Use back-ticks ` for the labels, like so,

match(n:DATA_CATEGORY_TYPE) remove n:`client-18d1b5fb-c7b5-4769-9b75-363ec596b012` return n
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading