Skip to content

Commit f04ca60

Browse files
authored
Update README.md
1 parent 5f28f0d commit f04ca60

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,10 @@ Or filtering down the results to only the account id:
124124
>>> [doc['account_id'] for doc in response]
125125
[u'bk_29151823', u'gm_49121229']
126126
```
127+
128+
MongoDB also has a count method:
129+
130+
```
131+
>>> transactions.find({'purchase_method': 'cash'}).count()
132+
2
133+
```

0 commit comments

Comments
 (0)