53
52
Here's a basic example (for more see the *examples* section of the docs):
61
Collection(Database(Connection('localhost', 27017), u'test'), u'my_collection')
60
Collection(Database(MongoClient('localhost', 27017), u'test'), u'my_collection')
62
61
>>> db.my_collection.save({"x": 10})
63
62
ObjectId('4aba15ebe23f6b53b0000000')
64
63
>>> db.my_collection.save({"x": 8})