Skip to content

Commit

Permalink
FIX: Addresses are now added to business nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBakerEffendi authored Mar 17, 2020
1 parent 2958552 commit 56976c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo4j_yelp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'CALL apoc.load.json(\'file:///business.json\') YIELD value RETURN value '
'"," '
'MERGE (b:Business{id:value.business_id}) '
'SET b += apoc.map.clean(value, [\'business_id\',\'categories\',\'address\',\'postal_code\'],[]) '
'SET b += apoc.map.clean(value, [\'business_id\',\'categories\',\'postal_code\'],[]) '
'WITH b,value.categories as categories '
'UNWIND categories as category '
'MERGE (c:Category{id:category}) '
Expand Down

0 comments on commit 56976c4

Please sign in to comment.