"fix" room avatar query

This commit is contained in:
Ulf Gebhardt 2023-07-17 15:23:34 +02:00
parent 19e441b449
commit b8f0e1ef59
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -19,7 +19,7 @@ type Room {
roomId: String! @cypher(statement: "RETURN this.id")
roomName: String! @cypher(statement: "MATCH (this)<-[:CHATS_IN]-(user:User) WHERE NOT user.id = $cypherParams.currentUserId RETURN user.name")
avatar: String! @cypher(statement: "MATCH (this)<-[:CHATS_IN]-(user:User) WHERE NOT user.id = $cypherParams.currentUserId RETURN user.avatar.url")
avatar: String @cypher(statement: "MATCH (this)<-[:CHATS_IN]-(user:User) WHERE NOT user.id = $cypherParams.currentUserId RETURN user.avatar.url")
lastMessageAt: String