@@ -130,7 +130,7 @@ test_change_stream_pipeline (void)
130
130
MONGOC_MSG_NONE ,
131
131
tmp_bson ("{'$db': 'db',"
132
132
" 'aggregate': 'coll',"
133
- " 'pipeline': [{'$changeStream': {'fullDocument': 'default' }}],"
133
+ " 'pipeline': [{'$changeStream': {}}],"
134
134
" 'cursor': {}}" ));
135
135
136
136
mock_server_replies_simple (
@@ -180,15 +180,15 @@ test_change_stream_pipeline (void)
180
180
/* Test non-empty pipeline */
181
181
future = future_collection_watch (coll , nonempty_pipeline , NULL );
182
182
183
- request = mock_server_receives_msg (
184
- server ,
185
- MONGOC_MSG_NONE ,
186
- tmp_bson ("{'$db': 'db',"
187
- " 'aggregate': 'coll',"
188
- " 'pipeline': ["
189
- " {'$changeStream': {'fullDocument': 'default' }},"
190
- " {'$project': {'ns': false}}],"
191
- " 'cursor': {}}" ));
183
+ request =
184
+ mock_server_receives_msg ( server ,
185
+ MONGOC_MSG_NONE ,
186
+ tmp_bson ("{'$db': 'db',"
187
+ " 'aggregate': 'coll',"
188
+ " 'pipeline': ["
189
+ " {'$changeStream': {}},"
190
+ " {'$project': {'ns': false}}],"
191
+ " 'cursor': {}}" ));
192
192
mock_server_replies_simple (
193
193
request ,
194
194
"{'cursor': {'id': 123, 'ns': 'db.coll','firstBatch': []},'ok': 1}" );
@@ -739,11 +739,10 @@ test_change_stream_resumable_error (void)
739
739
"{ 'code': 10107, 'errmsg': 'not primary', 'ok': 0 }" ;
740
740
const char * interrupted_err =
741
741
"{ 'code': 11601, 'errmsg': 'interrupted', 'ok': 0 }" ;
742
- const bson_t * watch_cmd =
743
- tmp_bson ("{'$db': 'db',"
744
- " 'aggregate': 'coll',"
745
- " 'pipeline': [{'$changeStream': {'fullDocument': 'default'}}],"
746
- " 'cursor': {}}" );
742
+ const bson_t * watch_cmd = tmp_bson ("{'$db': 'db',"
743
+ " 'aggregate': 'coll',"
744
+ " 'pipeline': [{'$changeStream': {}}],"
745
+ " 'cursor': {}}" );
747
746
const char * expected_msg =
748
747
"{'$db': 'db', 'getMore': {'$numberLong': '%d'}, 'collection': 'coll' }" ;
749
748
@@ -1825,7 +1824,7 @@ _test_resume (const char *opts,
1825
1824
server ,
1826
1825
MONGOC_QUERY_NONE ,
1827
1826
tmp_bson ("{ 'aggregate': 'coll', 'pipeline' : [ { '$changeStream': { %s "
1828
- "'fullDocument': 'default' } } ], 'cursor': { } }" ,
1827
+ " 'fullDocument': null } } ], 'cursor': { } }" ,
1829
1828
expected_change_stream_opts ));
1830
1829
msg = bson_strdup_printf ("{'cursor': {'id': 123, 'ns': 'db.coll',"
1831
1830
"'firstBatch': [%s]%s }, 'operationTime': "
@@ -1855,7 +1854,7 @@ _test_resume (const char *opts,
1855
1854
server ,
1856
1855
MONGOC_QUERY_NONE ,
1857
1856
tmp_bson ("{ 'aggregate': 'coll', 'pipeline' : [ { '$changeStream': { %s "
1858
- "'fullDocument': 'default' }} ], 'cursor': { } }" ,
1857
+ " 'fullDocument': null }} ], 'cursor': { } }" ,
1859
1858
expected_resume_change_stream_opts ));
1860
1859
mock_server_replies_simple (
1861
1860
request ,
0 commit comments