We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c83bdc commit 45299b4Copy full SHA for 45299b4
mongodb-field-lengths.py
@@ -20,5 +20,5 @@
20
assert options.field is not None
21
22
collection = common.mongodb.collection(DATABASE=options.database, name=options.collection, PORT=options.port, HOSTNAME=options.hostname)
23
-for doc in common.mongodb.findall(collection, matchfn=lambda doc: options.field in doc, matchfn_description="has field %s" % options.field):
+for doc in common.mongodb.findall_with_field(collection, field=options.field):
24
print len(doc[options.field]), repr(doc[options.field])[:1000]
0 commit comments