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:
Ulf Gebhardt 2019-05-28 23:06:33 +02:00 committed by GitHub
commit 7ed22883b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
;