Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-19-2022 05:39 AM - edited 08-19-2022 05:41 AM
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`:
._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 |
|
08-19-2022 05:55 AM
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
All the sessions of the conference are now available online