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.
私がmysqlで使用する最も一般的なクエリの1つは次のとおりです。
select * from database where id in(1,5,3,2,4) order by field(id,1,5,3,2,4)
MongoDBを使用している新しいプロジェクトで、使用できる同様のクエリはありますか?実際の検索には別の検索エンジンを使用し、特定の順序でIDのリストを返します。