私はmongoとpythonを使い始めたばかりで、このクエリを正しく実行することに固執しています:
#get a database
db = connection.test
#get a colleciton
family = db.family
#get all names that begin with E
namesWithE = family.find({'name' : 'E/^'})
print nameWithE.count()
このクエリに一致するレコードが 2 つあることはわかっていますが、カウントが 0 のままです