mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- include all collections (commented out) - refactored neo4j import script - use of .env file for (additional) configurations / configuration overrides - lots of fiddeling with neo4j cql files and cypher shell
11 lines
317 B
SQL
11 lines
317 B
SQL
CALL apoc.load.json("file:${IMPORT_CHUNK_PATH_CQL}") 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`
|
|
;
|