Skip to content

Commit 8b18fc4

Browse files
committed
CDRIVER-2774 update change stream example
1 parent d061b31 commit 8b18fc4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/libmongoc/tests/test-mongoc-sample-commands.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,17 +2607,15 @@ test_example_change_stream (mongoc_database_t *db)
26072607
"{",
26082608
"$match",
26092609
"{",
2610-
"$or",
2611-
"[",
2612-
"{",
26132610
"fullDocument.username",
26142611
BCON_UTF8 ("alice"),
26152612
"}",
2616-
"{",
2617-
"operationType",
2618-
BCON_UTF8 ("delete"),
26192613
"}",
2620-
"]",
2614+
"{",
2615+
"$addFields",
2616+
"{",
2617+
"newField",
2618+
BCON_UTF8 ("this is an added field!"),
26212619
"}",
26222620
"}",
26232621
"]");

0 commit comments

Comments
 (0)