lib/query-builder.js
function directory() {
  var args = mlutil.asArray.apply(null, arguments);

  var uris = [];
  var infinite = null;
  var arg = null;
  for (var i=0; i < args.length; i++) {
    arg = args[i];
    if (infinite === null && (typeof arg === 'boolean')) {
      infinite = arg;
    } else if (arg instanceof Array){
      Array.prototype.push.apply(uris, arg);
    } else {
      uris.push(arg);
    }
  }

  return new DirectoryQueryDef(
      new UrisDef(uris, infinite)
      );
}
function directory() {
  var args = mlutil.asArray.apply(null, arguments);

  var uris = [];
  var infinite = null;
  var arg = null;
  for (var i=0; i < args.length; i++) {
    arg = args[i];
    if (infinite === null && (typeof arg === 'boolean')) {
      infinite = arg;
    } else if (arg instanceof Array){
      Array.prototype.push.apply(uris, arg);
    } else {
      uris.push(arg);
    }
  }

  return new DirectoryQueryDef(
      new UrisDef(uris, infinite)
      );
}
function directory ( ) { var args = mlutil . asArray . apply ( null , arguments ) ; var uris = [ ] ; var infinite = null ; var arg = null ; for ( var i = 0 ; i < args . length ; i ++ ) { arg = args [ i ] ; if ( infinite === null && ( typeof arg === 'boolean' ) ) { infinite = arg ; } else if ( arg instanceof Array ) { Array . prototype . push . apply ( uris , arg ) ; } else { uris . push ( arg ) ; } } return new DirectoryQueryDef ( new UrisDef ( uris , infinite ) ) ; }
Builds a query matching documents in one or more database directories.
@method
@since 1.0
@memberof queryBuilder#
@param {string|string[]} uris - one or more directory uris
to match
@param {boolean} [infinite] - whether to match documents at the top level or
at any level of depth within the specified directories
@returns {queryBuilder.Query} a composable query
Builds a query matching documents in one or more database directories .