mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add relation 'CREATED' between owner and group
This commit is contained in:
parent
0149af12d4
commit
3d1b403656
@ -86,6 +86,7 @@ export default {
|
||||
SET group.updatedAt = toString(datetime())
|
||||
WITH group
|
||||
MATCH (owner:User {id: $userId})
|
||||
MERGE (owner)-[:CREATED]->(group)
|
||||
MERGE (owner)-[membership:MEMBER_OF]->(group)
|
||||
SET membership.createdAt = toString(datetime())
|
||||
SET membership.updatedAt = toString(datetime())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user