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
- API key without database.read/write
I had some issues with my previous API key and I deleted it then I wanted to create a new one and discovered the database checkbook has no database.read/write j...
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...