jstests/aggregation/sources/graphLookup/error.js
// in a $graphLookup is sharded and if it is allowed to be.
in a $graphLookup is sharded and if it is allowed to be.
in a $graphLookup is sharded and if it is allowed to be .
function assertFromCannotBeShardedOrError(pipeline, errorCode, msg) {
    if (canExecuteGraphLookup) {
        assertErrorCode(local, pipeline, errorCode, msg);
    } else {
        assertErrorCode(local, pipeline, 28769, "foreign collection cannot be sharded");
    }
}
function assertFromCannotBeShardedOrError ( pipeline , errorCode , msg ) { if ( canExecuteGraphLookup ) { assertErrorCode ( local , pipeline , errorCode , msg ) ; } else { assertErrorCode ( local , pipeline , 28769 , "foreign collection cannot be sharded" ) ; } }
in a $graphLookup is sharded and if it is allowed to be.
in a $graphLookup is sharded and if it is allowed to be .