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.
私は次のようなコレクションを持っています:
{ "city" : "ACMARE", "state" : "AL", "_id" : "001" }
正規表現を使用して、このコレクションを市ごとに集計するにはどうすればよいですか? D例: 名前が fromからH?の文字で始まる都市 thisを読みましたが、正規表現の使用方法がまだ明確ではありません。
D
H
db.Collection.find( { city: /^[D-H]/ } )