Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
上限のあるコレクションがあり、発行する必要があることがわかっています。
find().sort({$natural:-1})
新しい順に並べ替えます。しかし、モルフィアでこれを行うにはどうすればよいですか?
query.order("-$natural"); // doesn't work
解決策が見つかりました: クエリ オブジェクトを作成した直後に検証を無効にすると、すべてが期待どおりに機能します。