jstests/change_streams/lookup_pit_pre_and_post_image.js
// Confirms that the change event document does not contain any internal-only fields.
Confirms that the change event document does not contain any internal-only fields.
Confirms that the change event document does not contain any internal - only fields .
function assertChangeStreamInternalFieldsNotPresent(changeStreamDoc) {
        assert(!changeStreamDoc.hasOwnProperty("preImageId"), changeStreamDoc);
        assert(!changeStreamDoc.hasOwnProperty("updateModification"), changeStreamDoc);
        if (!changeStreamOptions.hasOwnProperty("fullDocumentBeforeChange")) {
            assert(!changeStreamDoc.hasOwnProperty("fullDocumentBeforeChange"), changeStreamDoc);
        }
        if (!changeStreamOptions.hasOwnProperty("fullDocument") &&
            changeStreamDoc.operationType == "update") {
            assert(!changeStreamDoc.hasOwnProperty("fullDocument"), changeStreamDoc);
        }
    }
function assertChangeStreamInternalFieldsNotPresent ( changeStreamDoc ) { assert ( ! changeStreamDoc . hasOwnProperty ( "preImageId" ) , changeStreamDoc ) ; assert ( ! changeStreamDoc . hasOwnProperty ( "updateModification" ) , changeStreamDoc ) ; if ( ! changeStreamOptions . hasOwnProperty ( "fullDocumentBeforeChange" ) ) { assert ( ! changeStreamDoc . hasOwnProperty ( "fullDocumentBeforeChange" ) , changeStreamDoc ) ; } if ( ! changeStreamOptions . hasOwnProperty ( "fullDocument" ) && changeStreamDoc . operationType == "update" ) { assert ( ! changeStreamDoc . hasOwnProperty ( "fullDocument" ) , changeStreamDoc ) ; } }
Confirms that the change event document does not contain any internal-only fields.
Confirms that the change event document does not contain any internal - only fields .