We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d034d1d commit ec242cdCopy full SHA for ec242cd
1 file changed
2-structured-data/bookshelf/model_mongodb.py
@@ -63,7 +63,7 @@ def list(limit=10, cursor=None):
63
64
# [START read]
65
def read(id):
66
- result = mongo.db.books.find_one(_id(id))
+ result = mongo.db.books.find_one({'_id': _id(id)})
67
return from_mongo(result)
68
# [END read]
69
0 commit comments