Skip to content

Commit

Permalink
docs(connection): clarify that Connection#transaction() promise res…
Browse files Browse the repository at this point in the history
…olves to a command result

Fix #9919
  • Loading branch information
vkarpov15 committed Feb 16, 2021
1 parent 0757423 commit 18e5db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ Connection.prototype.startSession = _wrapConnHelper(function startSession(option
* @method transaction
* @param {Function} fn Function to execute in a transaction
* @param {mongodb.TransactionOptions} [options] Optional settings for the transaction
* @return {Promise<Any>} promise that resolves to the returned value of `fn`
* @return {Promise<Any>} promise that is fulfilled if Mongoose successfully committed the transaction, or rejects if the transaction was aborted or if Mongoose failed to commit the transaction. If fulfilled, the promise resolves to a MongoDB command result.
* @api public
*/

Expand Down

0 comments on commit 18e5db1

Please sign in to comment.