jstests/auth/change_stream_pre_image_coll_role_auth.js
// The parameter 'authDb' is the authentication db for the user.
The parameter 'authDb' is the authentication db for the user.
The parameter ' authDb ' is the authentication db for the user .
function removePreImage(authDb) {
    const db = authDb.getSiblingDB("config");
    assert.commandWorked(db.getCollection("system.preimages").remove({"preImage._id": 0}));
    findPreImage(authDb, 0 );
}
function removePreImage ( authDb ) { const db = authDb . getSiblingDB ( "config" ) ; assert . commandWorked ( db . getCollection ( "system.preimages" ) . remove ( { "preImage._id" : 0 } ) ) ; findPreImage ( authDb , 0 ) ; }
The parameter 'authDb' is the authentication db for the user.
The parameter ' authDb ' is the authentication db for the user .
/* numDocs */