mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
further query simplification
This commit is contained in:
parent
c24a9a56c2
commit
3a86c892b4
@ -22,7 +22,7 @@ type Room {
|
||||
avatar: String @cypher(statement: """
|
||||
MATCH (this)<-[:CHATS_IN]-(user:User)
|
||||
WHERE NOT user.id = $cypherParams.currentUserId
|
||||
OPTIONAL MATCH (user:User)-[:AVATAR_IMAGE]->(image:Image)
|
||||
OPTIONAL MATCH (user)-[:AVATAR_IMAGE]->(image:Image)
|
||||
RETURN image.url
|
||||
""")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user