Update backend/src/schema/types/type/Room.gql

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
Moriz Wahl 2023-07-17 11:33:59 +02:00 committed by GitHub
parent 3d4def7c10
commit 8e3402a7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
""")