docs: function( record, field, cb ){
  
      var self = this;
  
      var mongoSelector;
  
      // The layer is the object from which the call is made
      var layer = this;
  
      var rnd = Math.floor(Math.random()*100 );
      consolelog( "\n");
      consolelog( rnd, "ENTRY: _getChildrenData for ", field, ' => ', record );
      //consolelog( rnd, "Comparing with:", Object.keys( rootTable.autoLoad ) );
  
      var childTableData = self.childrenTablesHash[ field ];
  
      switch( childTableData.nestedParams.type ){
  
        case 'multiple':
          consolelog( rnd, "Child table to be considered is of type MULTIPLE" );
  
          // JOIN QUERY (direct)
          mongoSelector = {};
          Object.keys( childTableData.nestedParams.join ).forEach( function( joinKey ){
            var joinValue = childTableData.nestedParams.join[ joinKey ];
            mongoSelector[ joinKey ] = record[ joinValue ];
          });
  
          consolelog( rnd, "Running the select with selector:", mongoSelector, "on table", childTableData.layer.table );
  
          // Runs the query, which will get the children element for that
          // child table depending on the join
          childTableData.layer.collection.find( mongoSelector, childTableData.layer._projectionHash ).toArray( function( err, res ){
            if( err ) return cb( err );
  
            var deleteId = typeof( childTableData.layer._fieldsHash._id ) === 'undefined';
            res.forEach( function( item ) {
              if( deleteId ) delete item._id;
              delete item._clean;
            });
            cb( null, res );
          });
        break;
  
        case 'lookup':
  
          consolelog( rnd, "Child table to be considered is of type LOOKUP" );
  
          // JOIN QUERY (direct)
          mongoSelector = {};
          mongoSelector[ childTableData.nestedParams.layerField ] = record[ childTableData.nestedParams.localField ];
  
          consolelog( rnd, "Running the select with selector:", mongoSelector, "on table", childTableData.layer.table );
  
          // Runs the query, which will get the children element for that
          // child table depending on the join
          childTableData.layer.collection.find( mongoSelector, childTableData.layer._projectionHash ).toArray( function( err, res ){
            if( err ) return cb( err );
  
            // Return null if it's a lookup and there are no results
            if( res.length === 0 ){
              return cb( null, null );
            }
            var r = res[ 0 ];
  
            if( typeof( childTableData.layer._fieldsHash._id ) === 'undefined' ) delete r._id;
            delete r._clean;
  
            return cb( null, r );
          });
        break;
      }
    }