jan/web-client/graphql/queries/getConversationMessages.graphql
NamH d55a83888b
refactor: replacing mobx with jotai (#160)
* refactor: replacing mobx with jotai

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: Louis <louis@jan.ai>
2023-09-13 21:33:53 -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: {created_at: desc}
) {
...MessageDetail
}
}