jstests/sharding/query/lookup_mongod_unaware.js
// Returns true if the shard is aware that the collection is sharded.
Returns true if the shard is aware that the collection is sharded.
Returns true if the shard is aware that the collection is sharded .
function hasRoutingInfoForNs(shardConn, coll) {
        const res = shardConn.adminCommand({getShardVersion: coll, fullMetadata: true});
        assert.commandWorked(res);
        return res.metadata.collVersion != undefined;
    }
function hasRoutingInfoForNs ( shardConn , coll ) { const res = shardConn . adminCommand ( { getShardVersion : coll , fullMetadata : true } ) ; assert . commandWorked ( res ) ; return res . metadata . collVersion != undefined ; }
Returns true if the shard is aware that the collection is sharded.
Returns true if the shard is aware that the collection is sharded .