復習用MongoDBの基本クエリ
db.client.find({ 'text': {'$regex': 'hello'} })
タグが3つ含まれるもの
db.client.find({ 'tags': {'$size': 3} })
https://docs.mongodb.com/manual/reference/operator/query/size/
Where句を利用する
client.find_one({ "$where": "this.entities.hashtags > 0" })
https://docs.mongodb.com/manual/reference/operator/query/where/#op._S_where