jan/web-client/graphql/queries/getConversationMessages.graphql
hiento09 86f0ffc7d1
Chore/disable submodule (#56)
* Chore disable git submodule for web-client and app-backend

* Chore add newest source code of app-backend and web-client

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2023-09-05 16:29:07 +07:00

15 lines
286 B
GraphQL

query getConversationMessages(
$conversation_id: uuid = "",
$limit: Int = 100,
$offset: Int = 100,
) {
messages(
offset: $offset,
limit: $limit,
where: { conversation_id: { _eq: $conversation_id } },
order_by: {updated_at: desc}
) {
...MessageDetail
}
}