mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
11 lines
322 B
SQL
11 lines
322 B
SQL
CALL apoc.load.json('file:/tmp/mongo-export/badges.json') YIELD value as badge
|
|
MERGE(b:Badge {id: badge._id["$oid"]})
|
|
ON CREATE SET
|
|
b.key = badge.key,
|
|
b.type = badge.type,
|
|
b.icon = badge.image.path,
|
|
b.status = badge.status,
|
|
b.createdAt = badge.createdAt.`$date`,
|
|
b.updatedAt = badge.updatedAt.`$date`
|
|
;
|