mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* separate all queries into one file each * fix merge error * fix lint --------- Co-authored-by: mahula <lenzmath@posteo.de> Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
25 lines
447 B
TypeScript
25 lines
447 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const messageQuery = () => {
|
|
return gql`
|
|
query ($roomId: ID!, $first: Int, $offset: Int) {
|
|
Message(roomId: $roomId, first: $first, offset: $offset, orderBy: indexId_desc) {
|
|
_id
|
|
id
|
|
indexId
|
|
content
|
|
senderId
|
|
author {
|
|
id
|
|
}
|
|
username
|
|
avatar
|
|
date
|
|
saved
|
|
distributed
|
|
seen
|
|
}
|
|
}
|
|
`
|
|
}
|