mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-16 09:54:44 +00:00
Merge pull request #662 from Human-Connection/fix_duplicate_tags
Fix duplicate tags by using the name as the id
This commit is contained in:
commit
7ed22883b0
@ -20,6 +20,6 @@ MATCH (c:Category {id: categoryId})
|
||||
MERGE (p)-[:CATEGORIZED]->(c)
|
||||
WITH p, post.tags AS tags
|
||||
UNWIND tags AS tag
|
||||
MERGE (t:Tag {id: apoc.create.uuid(), name: tag})
|
||||
MERGE (t:Tag {id: tag, name: tag})
|
||||
MERGE (p)-[:TAGGED]->(t)
|
||||
;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user