@@ -120,7 +120,7 @@ async def update(self, field_updates, option=None):
120120
121121 .. code-block:: python
122122
123- >>> snapshot = document.get()
123+ >>> snapshot = await document.get()
124124 >>> snapshot.to_dict()
125125 {
126126 'foo': {
@@ -138,14 +138,14 @@ async def update(self, field_updates, option=None):
138138 ... 'quux': 800,
139139 ... },
140140 ... }
141- >>> document.update(field_updates)
141+ >>> await document.update(field_updates)
142142
143143 then all of ``foo`` will be overwritten on the server and the new
144144 value will be
145145
146146 .. code-block:: python
147147
148- >>> snapshot = document.get()
148+ >>> snapshot = await document.get()
149149 >>> snapshot.to_dict()
150150 {
151151 'foo': {
@@ -162,14 +162,14 @@ async def update(self, field_updates, option=None):
162162 >>> field_updates = {
163163 ... 'foo.quux': 800,
164164 ... }
165- >>> document.update(field_updates)
165+ >>> await document.update(field_updates)
166166
167167 then only ``foo.quux`` will be updated on the server and the
168168 field ``foo.bar`` will remain intact:
169169
170170 .. code-block:: python
171171
172- >>> snapshot = document.get()
172+ >>> snapshot = await document.get()
173173 >>> snapshot.to_dict()
174174 {
175175 'foo': {
@@ -193,13 +193,13 @@ async def update(self, field_updates, option=None):
193193 >>> field_updates = {
194194 ... 'other': firestore.DELETE_FIELD,
195195 ... }
196- >>> document.update(field_updates)
196+ >>> await document.update(field_updates)
197197
198198 would update the value on the server to:
199199
200200 .. code-block:: python
201201
202- >>> snapshot = document.get()
202+ >>> snapshot = await document.get()
203203 >>> snapshot.to_dict()
204204 {
205205 'foo': {
@@ -218,13 +218,13 @@ async def update(self, field_updates, option=None):
218218 >>> field_updates = {
219219 ... 'foo.now': firestore.SERVER_TIMESTAMP,
220220 ... }
221- >>> document.update(field_updates)
221+ >>> await document.update(field_updates)
222222
223223 would update the value on the server to:
224224
225225 .. code-block:: python
226226
227- >>> snapshot = document.get()
227+ >>> snapshot = await document.get()
228228 >>> snapshot.to_dict()
229229 {
230230 'foo': {
0 commit comments