Python MongoDB find
examples/mongodb/find.py
from pymongo import MongoClient import datetime client = MongoClient('mongodb://mongodb:27017') db = client.demo for person in db.people.find(): print(person)
from pymongo import MongoClient import datetime client = MongoClient('mongodb://mongodb:27017') db = client.demo for person in db.people.find(): print(person)