rudiment.js
function(props) {
      var that = this;

      return this._dbApi.find(props || {}).then(function(docs) {
        return docs.map(that._out_map);
      });
    }
function(props) {
      var that = this;

      return this._dbApi.find(props || {}).then(function(docs) {
        return docs.map(that._out_map);
      });
    }
function ( props ) { var that = this ; return this . _dbApi . find ( props || { } ) . then ( function ( docs ) { return docs . map ( that . _out_map ) ; } ) ; }
Get all documents from the database with matching properties

@param {Object} props
@return {Promise} -> {Array}
Get all documents from the database with matching properties