jstests/libs/clustered_collections/clustered_collection_util.js
// listCollections contains the correct information about the clusteredIndex.
listCollections contains the correct information about the clusteredIndex.
listCollections contains the correct information about the clusteredIndex .
static validateListCollections(db, collName, createOptions) {
        const fullCreateOptions = ClusteredCollectionUtil.constructFullCreateOptions(createOptions);
        const listColls =
            assert.commandWorked(db.runCommand({listCollections: 1, filter: {name: collName}}));
        const listCollsOptions = listColls.cursor.firstBatch[0].options;
        assert(listCollsOptions.clusteredIndex);
        assert.docEq(listCollsOptions.clusteredIndex, fullCreateOptions.clusteredIndex);
    }
static validateListCollections ( db , collName , createOptions ) { const fullCreateOptions = ClusteredCollectionUtil . constructFullCreateOptions ( createOptions ) ; const listColls = assert . commandWorked ( db . runCommand ( { listCollections : 1 , filter : { name : collName } } ) ) ; const listCollsOptions = listColls . cursor . firstBatch [ 0 ] . options ; assert ( listCollsOptions . clusteredIndex ) ; assert . docEq ( listCollsOptions . clusteredIndex , fullCreateOptions . clusteredIndex ) ; }
listCollections contains the correct information about the clusteredIndex.
listCollections contains the correct information about the clusteredIndex .