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 d2fd6c1 commit 69b3770Copy full SHA for 69b3770
source/serialization.txt
@@ -117,6 +117,9 @@ it back into a ``Restaurant`` object from the preceding example. Select the
117
118
def deserialize_restaurant(doc):
119
return Restaurant(name=doc["name"], cuisine=doc["cuisine"])
120
+
121
+ restaurant_doc = collection.find_one({"name": "Example Cafe"})
122
+ restaurant = deserialize_restaurant(restaurant_doc)
123
124
.. tab:: Asynchronous
125
:tabid: async
0 commit comments