Skip to content

Commit

Permalink
docs: couple of quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 7, 2022
1 parent 001dda3 commit 90d4d71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/aggregate.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ Aggregate.prototype.explain = function(verbosity, callback) {
};

/**
* Sets the allowDiskUse option for the aggregation query (ignored for < 2.6.0)
* Sets the allowDiskUse option for the aggregation query
*
* #### Example:
*
Expand All @@ -782,7 +782,7 @@ Aggregate.prototype.allowDiskUse = function(value) {
};

/**
* Sets the hint option for the aggregation query (ignored for < 3.6.0)
* Sets the hint option for the aggregation query
*
* #### Example:
*
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Mongoose.prototype.get = Mongoose.prototype.set;
* @param {Number} [options.connectTimeoutMS=30000] How long the MongoDB driver will wait before killing a socket due to inactivity _during initial connection_. Defaults to 30000. This option is passed transparently to [Node.js' `socket#setTimeout()` function](https://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback).
* @param {Number} [options.socketTimeoutMS=30000] How long the MongoDB driver will wait before killing a socket due to inactivity _after initial connection_. A socket may be inactive because of either no activity or a long-running operation. This is set to `30000` by default, you should set this to 2-3x your longest running operation if you expect some of your database operations to run longer than 20 seconds. This option is passed to [Node.js `socket#setTimeout()` function](https://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback) after the MongoDB driver successfully completes.
* @param {Number} [options.family=0] Passed transparently to [Node.js' `dns.lookup()`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback) function. May be either `0`, `4`, or `6`. `4` means use IPv4 only, `6` means use IPv6 only, `0` means try both.
* @return {Connection} the created Connection object. Connections are not thenable, so you can't do `await mongoose.createConnection()`. To await use mongoose.createConnection(uri).asPromise() instead.
* @return {Connection} the created Connection object. Connections are not thenable, so you can't do `await mongoose.createConnection()`. To await use `mongoose.createConnection(uri).asPromise()` instead.
* @api public
*/

Expand Down
6 changes: 3 additions & 3 deletions types/aggregate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ declare module 'mongoose' {
*/
addFields(arg: PipelineStage.AddFields['$addFields']): this;

/** Sets the allowDiskUse option for the aggregation query (ignored for < 2.6.0) */
/** Sets the allowDiskUse option for the aggregation query */
allowDiskUse(value: boolean): this;

/** Appends new operators to this aggregate pipeline */
Expand All @@ -111,7 +111,7 @@ declare module 'mongoose' {
count(fieldName: PipelineStage.Count['$count']): this;

/**
* Sets the cursor option for the aggregation query (ignored for < 2.6.0).
* Sets the cursor option for the aggregation query
*/
cursor<DocType = any>(options?: Record<string, unknown>): Cursor<DocType>;

Expand All @@ -134,7 +134,7 @@ declare module 'mongoose' {
/** Appends new custom $group operator to this aggregate pipeline. */
group(arg: PipelineStage.Group['$group']): this;

/** Sets the hint option for the aggregation query (ignored for < 3.6.0) */
/** Sets the hint option for the aggregation query */
hint(value: Record<string, unknown> | string): this;

/**
Expand Down

0 comments on commit 90d4d71

Please sign in to comment.