Skip to content

Commit b8c87db

Browse files
authored
Update mongodb-change-streams.md
capitalization fix, per acrolinx
1 parent 134631a commit b8c87db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/mongodb-change-streams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following error codes and messages are supported when using change streams:
3939

4040
The following example shows how to get change streams on all the items in the collection. This example creates a cursor to watch items when they are inserted, updated, or replaced. The `$match` stage, `$project` stage, and `fullDocument` option are required to get the change streams. Watching for delete operations using change streams is currently not supported. As a workaround, you can add a soft marker on the items that are being deleted. For example, you can add an attribute in the item called "deleted." When you'd like to delete the item, you can set "deleted" to `true` and set a TTL on the item. Since updating "deleted" to `true` is an update, this change will be visible in the change stream.
4141

42-
### Javascript:
42+
### JavaScript:
4343

4444
```javascript
4545
var cursor = db.coll.watch(

0 commit comments

Comments
 (0)