document in cursor:! documents.append(document)! return documents Resource GET find() accepts a python dict as query expression, and returns a cursor we can iterate /contacts?where={“age”: {“$gt”: 20}}&projection={“lastname”: 1}
document in cursor:! documents.append(document)! return documents Resource GET find() accepts a python dict as query expression, and returns a cursor we can iterate /contacts?where={“age”: {“$gt”: 20}}&projection={“lastname”: 1}
document in cursor:! documents.append(document)! return documents Resource GET find() accepts a python dict as query expression, and returns a cursor we can iterate /contacts?where={“age”: {“$gt”: 20}}&projection={“lastname”: 1}
db(collection).insert(item) POSTing Take #1 push document and get its ObjectId back from Mongo. like other CRUD operations, inserting is trivial in mongo.