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.
如何使用 reactivemongo 查询范围。相当于
db.collection.find( { field: { $gt: value1, $lt: value2 } } );
谢谢。
只是快速地做这件事并且不记性,但类似:
val query = BSONDocument( "field" -> BSONDocument( "$gt" -> value1) .add( BSONDocument( "$lt" -> value2 ) ) )
我确信有一种更优雅的方式可以在游戏中使用 JSON。