File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1327,7 +1327,8 @@ describe('mongodb connector', function() {
13271327 err . name . should . equal ( 'MongoServerError' ) ;
13281328 err . errmsg . should . equal (
13291329 'The dollar ($) prefixed ' +
1330- "field '$rename' in '$rename' is not valid for storage." ,
1330+ "field '$rename' in '$rename' is not allowed in the context of an update's replacement document." +
1331+ 'Consider using an aggregation pipeline with $replaceWith.' ,
13311332 ) ;
13321333 done ( ) ;
13331334 } ,
@@ -1352,7 +1353,8 @@ describe('mongodb connector', function() {
13521353 err . name . should . equal ( 'MongoServerError' ) ;
13531354 err . errmsg . should . equal (
13541355 'The dollar ($) prefixed ' +
1355- "field '$rename' in '$rename' is not valid for storage." ,
1356+ "field '$rename' in '$rename' is not not allowed in the context of an update's replacement document. " +
1357+ 'Consider using an aggregation pipeline with $replaceWith.' ,
13561358 ) ;
13571359 done ( ) ;
13581360 } ,
@@ -1409,7 +1411,8 @@ describe('mongodb connector', function() {
14091411 err . name . should . equal ( 'MongoServerError' ) ;
14101412 err . errmsg . should . equal (
14111413 'The dollar ($) prefixed ' +
1412- "field '$rename' in '$rename' is not valid for storage." ,
1414+ "field '$rename' in '$rename' is not allowed in the context of an update's replacement document. " +
1415+ 'Consider using an aggregation pipeline with $replaceWith.' ,
14131416 ) ;
14141417 done ( ) ;
14151418 } ,
You can’t perform that action at this time.
0 commit comments