Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-28-2022 07:17 AM
Hello,
I have a problem with the node XmlWord11. The text property, in some nodes, is empty and I would like to delete it.
I try this code and you can see it, it works when I put something between de '', in orange.
I tried to put n.text= null and n.text='' but didn't work either way.
How do I do it?
Thank you!
Solved! Go to Solution.
06-28-2022 07:55 AM - edited 06-28-2022 07:56 AM
Hi @Mariana ,
You may have some \r lost in the middle. Try something like:
MATCH (n:XmlWord11)
where trim(n.text) = ""
detach delete n
06-28-2022 07:55 AM - edited 06-28-2022 07:56 AM
Hi @Mariana ,
You may have some \r lost in the middle. Try something like:
MATCH (n:XmlWord11)
where trim(n.text) = ""
detach delete n
06-28-2022 08:10 AM
It worked! Thank you very much!
All the sessions of the conference are now available online