YvensY
Convex Communityβ€’2y agoβ€’
7 replies
Yvens

Paginate many to many edge (ents)

Hello, I don't get how to paginate a many to many query on convex-ents:

``
const result = username === ""
      ? await ctx.table("organizations").getX(organizationId).edge("users")
      : await ctx
        .table("users")
        .search("search_username", (q) => q.search("username", username).eq("organizationId", organizationId))
        .paginate(paginationOpts);
    return result;
`

My problem is on this line :

await ctx.table("organizations").getX(organizationId).edge("users")
``
Was this page helpful?