jstests/auth/change_stream_pre_image_coll_role_auth.js
// expected number of documents to be retrieved.
expected number of documents to be retrieved.
expected number of documents to be retrieved .
function findPreImage(authDb, numDocs = 1) {
    const db = authDb.getSiblingDB("config");
    const result = db.getCollection("system.preimages").find().toArray();
    assert.eq(result.length, numDocs, result);
}
function findPreImage ( authDb , numDocs = 1 ) { const db = authDb . getSiblingDB ( "config" ) ; const result = db . getCollection ( "system.preimages" ) . find ( ) . toArray ( ) ; assert . eq ( result . length , numDocs , result ) ; }
expected number of documents to be retrieved.
expected number of documents to be retrieved .