My current document structure is the same one in the mongodb section in 
that link. I am using the same example restaurants dataset that is used in 
the example. My current call so far is this: 
CALL apoc.mongodb.get("localhost","test","restaurants",null) YIELD value as 
doc
CREATE (r:Restaurant {name:doc.name, id:doc.restaurant_id})
CREATE (r)-[:LOCATED_AT]->(a:Address) SET a = doc.address
MERGE (b:Borough {name:doc.borough})
CREATE (a)-[:IN_BOROUGH]->(b)
MERGE (c:Cuisine {name: doc.cuisine})
CREATE (r)-[:CUISINE]->(c);

This call doesn't make the grades nodes. I need to unwind the grades array 
in the json file and take the score and grade while ignoring the date in 
the dataset json file.

On Thursday, 23 November 2017 15:40:21 UTC, Michael Hunger wrote:
>
> Can you share your document structure and current call so far?
>
> On Thu, Nov 23, 2017 at 12:43 AM, <cathal.k...@mycit.ie <javascript:>> 
> wrote:
>
>> Hi guys,
>>
>> https://neo4j.com/blog/apoc-database-integration-import-export-cypher/, 
>> I am doing the MongoDB section in this link. I need to create nodes that 
>> includes the grades for the primer-dataset.json. I need to unwind the 
>> grades array in the json file and take the score and grade while ignoring 
>> the date. I'm not that familiar with Cypher at this stage so I'm not 100% 
>> sure what the code would be for this. I am still trying to learn it but I 
>> can't seem to get the correct answer. I have all other nodes displaying 
>> except for the grades array.
>>
>> Any help would be greatly appreciated.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to neo4j+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to