limit(limit) {
    if (limit < 0)
      throw new Error("The limit can't be nagative.");

    return this._addLimit(limit);
  }
/**
   * Sets the limit of this query, i.e hox many objects should be returnd
   * @param {number} limit The limit of this query
   * @return {query.Query<T>} The resulting Query
   *
   * @see http://docs.mongodb.org/manual/reference/method/cursor.limit/
   */
Sets the limit of this query, i.e hox many objects should be returnd
@param {number} limit The limit of this query
@return {query.Query} The resulting Query


Sets the limit of this query i . e hox many objects should be returnd @param { number } limit The limit of this query @return { query . Query } The resulting Query
limit(limit) {
    if (limit < 0)
      throw new Error("The limit can't be nagative.");
    return this._addLimit(limit);
  }
limit ( limit ) { if ( limit < 0 ) throw new Error ( "The limit can't be nagative." ) ; return this . _addLimit ( limit ) ; }
Sets the limit of this query, i.e hox many objects should be returnd
 @param {number} limit The limit of this query
 @return {query.Query<T>} The resulting Query
Sets the limit of this query i . e hox many objects should be returnd @param { number } limit The limit of this query @return { query . Query<T > } The resulting Query