From 3a86c892b4a59feee6978721adb99d71fd624971 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 17 Jul 2023 18:27:00 +0200 Subject: [PATCH] further query simplification --- backend/src/schema/types/type/Room.gql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/schema/types/type/Room.gql b/backend/src/schema/types/type/Room.gql index 744d63e6b..8b9982dda 100644 --- a/backend/src/schema/types/type/Room.gql +++ b/backend/src/schema/types/type/Room.gql @@ -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 """)