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
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...