ellis.valentiner
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
(or most popular to least popular vs. least popular to most popular)
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
I want to be able to paginate through items in alphabetical order and reverse alphabetical order
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
Is it possible to specify reverse sort order?
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
Aggregates repaired and it looks like its working now, thanks!
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
I think so. I'll give that a try.
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
ah I see. Does this mean I need to repair my aggregates again too?
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
But looking at the item with the returned
id
I can see it is definitely not being sorted by name as I'd have expected25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
I just tried examining the result of
await pageOfAlphabeticalItems.at(ctx, 0, {namespace: namespace});
rather than destructuring it and it looks like I do get a valid id
and sumValue: 0
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
Nope!
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
Hi @Lee !
The
key
is null, which causes item
to also be null
.
Here is my TableAggregate for random access – this does work:
Here is my TableAggregate for offset based pagination for alphabetical items:
I've tried repairing the aggregates but the count is still incorrect, which is suspicious to me.25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
My query for random access works:
However trying to use offset based pagination does not because the result of
pageOfAlphabeticalItems.at
is null
:
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
convex/migrations.ts
25 replies
CCConvex Community
•Created by ellis.valentiner on 3/6/2025 in #support-community
Offset-based pagination returns NULL
convex/convex.config.ts
25 replies