1

This is going to be little complex

I am trying to save a json with nested array structure. I have the json like below which I am trying to save

JSON LINK

Is there a possibility to save the above json with cypher query, because previously I tried with py2neo library for pyhton, which is based on model definition, Therefore the above json with nested structure will be going to have a dynamic keys a bit.

What I actually tried is, I'm leaving it below

query = '''
    CREATE (part:Part PARTJSON) 
    MERGE (part) - [:LINKED_TO] - (general:General GENERALJSON)
    MERGE (general) - [:LINKED_TO] - (bom:Bom BOMJSON )
    MERGE (general) - [:LINKED_TO] - (generaldata:GeneralData GENERALDATAJSON )
.......
'''

Is there a possibility to write a cypher query to save it in one flash.

If so, can help with possible ideas so that it will be useful for neo4j users with roadblocks.

Thanks in advance.

mastisa
  • 1,875
  • 3
  • 21
  • 39
Ashwin S
  • 165
  • 2
  • 11

0 Answers0