mongodb - How do I reverse sort natural in Morphia? -


i have capped collection , know need issue:

find().sort({$natural:-1}) 

to sort recent first. how do in morphia?

query.order("-$natural"); // doesn't work 

found solution: disable validation after creating query object , every functions expected.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -