From 8e3402a7efb55a57796f3e28ad50f792c1e0b2e5 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 17 Jul 2023 11:33:59 +0200 Subject: [PATCH] Update backend/src/schema/types/type/Room.gql Co-authored-by: Ulf Gebhardt --- 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 a1ff56e34..c9c72e931 100644 --- a/backend/src/schema/types/type/Room.gql +++ b/backend/src/schema/types/type/Room.gql @@ -20,7 +20,7 @@ type Room { lastMessage: Message @cypher(statement: """ MATCH (this)<-[:INSIDE]-(message:Message) - WITH message ORDER BY message.createdAt DESC LIMIT 1 + WITH message ORDER BY message.indexId DESC LIMIT 1 RETURN message """)