new query including index & first, offset and orderBy

This commit is contained in:
Ulf Gebhardt 2023-07-12 13:14:43 +02:00
parent a97d65da3c
commit 7e77bc82fb
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -2,10 +2,11 @@ import gql from 'graphql-tag'
export const messageQuery = () => {
return gql`
query ($roomId: ID!) {
Message(roomId: $roomId) {
query ($roomId: ID!, $first: Int, $offset: Int) {
Message(roomId: $roomId, first: $first, offset: $offset, orderBy: createdAt_desc) {
_id
id
indexId
senderId
content
author {