mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
5 lines
169 B
SQL
5 lines
169 B
SQL
CALL apoc.load.json('file:/mongo-export/shouts.json') YIELD value as shout
|
|
MATCH (u:User {id: shout.userId}), (p:Post {id: shout.foreignId})
|
|
MERGE (u)-[:SHOUTED]->(p)
|
|
;
|