cancel
Showing results for 
Search instead for 
Did you mean: 

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

glilienfield
Ninja
Ninja

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

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.