I'm sorting documents based on their due dates in ascending order. When I use the Query.orderAsc("dueDate") method, it rightly places documents with a null "dueDate" at the beginning. However, this creates a challenge for my pagination. I'm exploring whether there's a way or a workaround to arrange documents with null "dueDates" at the end of the list instead. Any suggestions or options for achieving this?
You could filter out null valued records, and put them at the end? Not a very elegant solution, but it does the job
@ideclon That's how I am doing it currently. I hoped there was a more elegant solution. Thanks for your help anyways!!
Recommended threads
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...
- Help with nameservers
I just added our domain, and as per instruction in the page following, it says, "Add the following nameservers on your DNS provider. ..." I want to keep my cu...