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
Post a Comment