Skip to content
Snippets Groups Projects

Fix duplicate tags by using the name as the id

Closed Hannes Heine requested to merge pr662head into pr662base
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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