In my collection, I have a field called 'vegan' that stores an integer. Each document has a different value for vegan ranging from null->100 . I want to get the top 20 documents with the highest value for 'vegan'.
Are there any examples of this in the BL?
almost 5 years ago
You can simply do a collectionAccess query with a sort and limit.