Skip to content

Commit 9996639

Browse files
authored
Fix Python syntax error in partial-document-update-getting-started.md
1 parent b05e10d commit 9996639

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cosmos-db/partial-document-update-getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Support for Partial Document Update (Patch API) in the [Azure Cosmos DB Python S
291291
```python
292292
operations =
293293
[
294-
{ op: 'replace', path: '/price', value: 355.45 }
294+
{ 'op': 'replace', 'path': '/price', 'value': 355.45 }
295295
]
296296

297297
response = container.patch_item(item='e379aea5-63f5-4623-9a9b-4cd9b33b91d5', partition_key='road-bikes', patch_operations=operations)
@@ -303,8 +303,8 @@ Support for Partial Document Update (Patch API) in the [Azure Cosmos DB Python S
303303
```python
304304
operations =
305305
[
306-
{ op: 'add', path: '/color', value: 'silver' },
307-
{ op: 'remove', path: '/used' }
306+
{ 'op': 'add', 'path': '/color', 'value': 'silver' },
307+
{ 'op': 'remove', 'path': '/used' }
308308
]
309309

310310
response = container.patch_item(item='e379aea5-63f5-4623-9a9b-4cd9b33b91d5', partition_key='road-bikes', patch_operations=operations)
@@ -318,7 +318,7 @@ Support for Partial Document Update (Patch API) in the [Azure Cosmos DB Python S
318318

319319
operations =
320320
[
321-
{ op: 'replace', path: '/price', value: 100.00 }
321+
{ 'op': 'replace', 'path': '/price', 'value': 100.00 }
322322
]
323323

324324
try:

0 commit comments

Comments
 (0)