cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

merge label property with Bullet points

paritosh_deshmu
Node Clone

am importing nested xml, that contains fragment as shown below.  Using UNWIND and MERGE approach.

I need help, need to create property, that store (below) bullet points in a single property.

Example property name "req-if_text``  with a label "`````R```EQ-IF label" using MERGE

query Example:

MERGE (c34:`REQ-IF` { `Reqif.text`:

pkg._children[1]._children[0]._children[2]._children[14]._children[0]._children[2]._children[1]._children[0]._children[0]._children[0..]})

._children[0..] ARRAY contains

{
  "_type": "li",
  "_text": "Safe to operate"
}

,

{
  "_type": "li",
  "_text": "reducing the risk due to ULTRASONIC welding"
}

,

{
  "_type": "li",
  "_text": "protection from dust and moisture sensitivity"
}

]

Desired output as shown below

ReqIF_text
  • Safe to operate
  • reducing the risk due to ULTRASONIC welding
  • protection from dust and moisture sensitivity
1 REPLY 1

I am a little confused on your data and what you are asking for. Providing the xml would help.  In the meantime, I will try assuming what I think you may be asking. Given a list of items as you show named ‘item’, you can extract them int a list that you should be able to save in a single property 

[x in items | x._text] as listToSave