* 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>
15 lines
286 B
GraphQL
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
|
|
}
|
|
}
|