lib/operations/db_ops.js
function processResults(indexes) {
    // Contains all the information
    let info = {};
    // Process all the indexes
    for (let i = 0; i < indexes.length; i++) {
      const index = indexes[i];
      // Let's unpack the object
      info[index.name] = [];
      for (let name in index.key) {
        info[index.name].push([name, index.key[name]]);
      }
    }

    return info;
  }
function processResults(indexes) {
    // Contains all the information
    let info = {};
    // Process all the indexes
    for (let i = 0; i < indexes.length; i++) {
      const index = indexes[i];
      // Let's unpack the object
      info[index.name] = [];
      for (let name in index.key) {
        info[index.name].push([name, index.key[name]]);
      }
    }

    return info;
  }
function processResults ( indexes ) { // Contains all the information let info = { } ; // Process all the indexes for ( let i = 0 ; i < indexes . length ; i ++ ) { const index = indexes [ i ] ; // Let's unpack the object info [ index . name ] = [ ] ; for ( let name in index . key ) { info [ index . name ] . push ( [ name , index . key [ name ] ] ) ; } } return info ; }
Process all the results from the index command and collection
Process all the results from the index command and collection