mberger-M
Convex Community3mo ago
3 replies
mberger-

combine list query results in one

I have conversations that are linked to an account:

  conversations: defineTable({
    account_id: v.id("connected_accounts"),
    name: v.string(),
    ...
  })


and a paginated query to list all conversations of an account.

But I also want to be able to see predefined groups of accounts at the same time.
Is there an optimized way to view the combined conversations of multiple accounts in one paginated query. (ex: having a query that combine the conversations of account A and B ordered by time)

- without making n times more queries to return one single page.
Was this page helpful?