Is there a way to randomise a query from from a collection of posts or products. So that each query is different. Just like top e commerce sites like temu, aliexpress, each time you refresh the recommended products are not the same and in different order
TL;DR
Developers want to know how to randomize queries from a collection of posts or products so that each query is different, similar to top e-commerce sites like Temu and AliExpress. This way, each time a user refreshes the recommended products, they will see a new order.
Solution: Implement a random function in the query to shuffle the results each time the query is run.Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...