From b58dd5b42a45547f22ced6440f916cdb2291345e Mon Sep 17 00:00:00 2001 From: dariakp <81593090+dariakp@users.noreply.github.com> Date: Wed, 6 Nov 2024 22:53:42 +0000 Subject: [PATCH] [create-pull-request] automated change --- docs/404.html | 32 +- docs/Next/assets/navigation.js | 2 +- docs/Next/assets/search.js | 2 +- docs/Next/classes/AbstractCursor.html | 46 +- docs/Next/classes/Admin.html | 16 +- docs/Next/classes/AggregationCursor.html | 150 +++--- docs/Next/classes/Batch.html | 4 +- docs/Next/classes/BulkOperationBase.html | 10 +- docs/Next/classes/BulkWriteResult.html | 32 +- docs/Next/classes/ChangeStream.html | 52 +- docs/Next/classes/ClientEncryption.html | 28 +- docs/Next/classes/ClientSession.html | 42 +- docs/Next/classes/Collection.html | 113 ++-- docs/Next/classes/Db.html | 57 +- docs/Next/classes/ExplainableCursor.html | 510 ++++++++++++++++++ docs/Next/classes/FindCursor.html | 158 +++--- docs/Next/classes/FindOperators.html | 22 +- docs/Next/classes/GridFSBucket.html | 26 +- docs/Next/classes/GridFSBucketReadStream.html | 10 +- .../Next/classes/GridFSBucketWriteStream.html | 34 +- docs/Next/classes/HostAddress.html | 4 +- docs/Next/classes/ListCollectionsCursor.html | 44 +- docs/Next/classes/ListIndexesCursor.html | 46 +- .../Next/classes/ListSearchIndexesCursor.html | 76 +-- docs/Next/classes/MongoBulkWriteError.html | 22 +- docs/Next/classes/MongoClient.html | 58 +- .../Next/classes/MongoCompatibilityError.html | 6 +- .../classes/MongoCursorExhaustedError.html | 6 +- docs/Next/classes/MongoCursorInUseError.html | 6 +- .../classes/MongoDBCollectionNamespace.html | 8 +- docs/Next/classes/MongoDBNamespace.html | 8 +- docs/Next/classes/MongoDriverError.html | 2 +- .../classes/MongoInvalidArgumentError.html | 6 +- .../classes/MongoMissingCredentialsError.html | 6 +- .../classes/MongoMissingDependencyError.html | 10 +- docs/Next/classes/MongoNetworkError.html | 6 +- .../classes/MongoNetworkTimeoutError.html | 6 +- .../classes/MongoOperationTimeoutError.html | 31 ++ docs/Next/classes/MongoParseError.html | 6 +- docs/Next/classes/MongoRuntimeError.html | 2 +- docs/Next/classes/MongoServerClosedError.html | 6 +- .../classes/MongoServerSelectionError.html | 8 +- docs/Next/classes/MongoSystemError.html | 8 +- .../classes/MongoTopologyClosedError.html | 6 +- docs/Next/classes/MongoWriteConcernError.html | 8 +- docs/Next/classes/OrderedBulkOperation.html | 8 +- docs/Next/classes/RunCommandCursor.html | 51 +- docs/Next/classes/ServerCapabilities.html | 4 +- docs/Next/classes/ServerDescription.html | 14 +- docs/Next/classes/ServerSession.html | 6 +- docs/Next/classes/UnorderedBulkOperation.html | 8 +- docs/Next/classes/WriteConcern.html | 20 +- docs/Next/classes/WriteConcernError.html | 10 +- docs/Next/classes/WriteError.html | 14 +- docs/Next/hierarchy.html | 2 +- .../interfaces/AWSEncryptionKeyOptions.html | 8 +- .../interfaces/AbstractCursorOptions.html | 37 +- docs/Next/interfaces/AggregateOptions.html | 38 +- .../interfaces/AggregationCursorOptions.html | 57 +- .../interfaces/AzureEncryptionKeyOptions.html | 8 +- .../interfaces/BulkWriteOperationError.html | 4 +- docs/Next/interfaces/BulkWriteOptions.html | 33 +- .../ChangeStreamCollModDocument.html | 16 +- .../ChangeStreamCreateDocument.html | 16 +- .../ChangeStreamCreateIndexDocument.html | 18 +- .../ChangeStreamDeleteDocument.html | 22 +- .../ChangeStreamDocumentCollectionUUID.html | 4 +- .../ChangeStreamDocumentCommon.html | 12 +- .../interfaces/ChangeStreamDocumentKey.html | 4 +- ...ngeStreamDocumentOperationDescription.html | 4 +- .../ChangeStreamDropDatabaseDocument.html | 16 +- .../interfaces/ChangeStreamDropDocument.html | 18 +- .../ChangeStreamDropIndexDocument.html | 18 +- .../ChangeStreamInsertDocument.html | 22 +- .../ChangeStreamInvalidateDocument.html | 14 +- .../interfaces/ChangeStreamNameSpace.html | 4 +- docs/Next/interfaces/ChangeStreamOptions.html | 48 +- ...treamRefineCollectionShardKeyDocument.html | 18 +- .../ChangeStreamRenameDocument.html | 20 +- .../ChangeStreamReplaceDocument.html | 22 +- ...ChangeStreamReshardCollectionDocument.html | 18 +- .../ChangeStreamShardCollectionDocument.html | 18 +- .../interfaces/ChangeStreamSplitEvent.html | 6 +- .../ChangeStreamUpdateDocument.html | 26 +- .../interfaces/ClientBulkWriteOptions.html | 27 +- ...ncryptionCreateDataKeyProviderOptions.html | 6 +- .../ClientEncryptionEncryptOptions.html | 14 +- .../interfaces/ClientEncryptionOptions.html | 24 +- ...ptionRewrapManyDataKeyProviderOptions.html | 4 +- ...ientEncryptionRewrapManyDataKeyResult.html | 4 +- .../Next/interfaces/ClientSessionOptions.html | 11 +- .../ClusteredCollectionOptions.html | 4 +- docs/Next/interfaces/CollationOptions.html | 4 +- docs/Next/interfaces/CollectionInfo.html | 4 +- docs/Next/interfaces/CollectionOptions.html | 8 +- .../interfaces/CommandOperationOptions.html | 27 +- docs/Next/interfaces/ConnectionOptions.html | 16 +- .../interfaces/ConnectionPoolOptions.html | 26 +- .../interfaces/CountDocumentsOptions.html | 40 +- docs/Next/interfaces/CountOptions.html | 32 +- .../interfaces/CreateCollectionOptions.html | 59 +- .../Next/interfaces/CreateIndexesOptions.html | 49 +- docs/Next/interfaces/CursorStreamOptions.html | 4 +- docs/Next/interfaces/DataKey.html | 4 +- docs/Next/interfaces/DbOptions.html | 8 +- docs/Next/interfaces/DbStatsOptions.html | 29 +- docs/Next/interfaces/DeleteManyModel.html | 8 +- docs/Next/interfaces/DeleteOneModel.html | 8 +- docs/Next/interfaces/DeleteOptions.html | 31 +- docs/Next/interfaces/DeleteResult.html | 6 +- docs/Next/interfaces/DeleteStatement.html | 10 +- .../interfaces/DropCollectionOptions.html | 29 +- docs/Next/interfaces/EndSessionOptions.html | 6 +- .../EstimatedDocumentCountOptions.html | 26 +- .../interfaces/ExplainCommandOptions.html | 6 +- docs/Next/interfaces/ExplainOptions.html | 4 +- .../interfaces/FindOneAndDeleteOptions.html | 35 +- .../interfaces/FindOneAndReplaceOptions.html | 41 +- .../interfaces/FindOneAndUpdateOptions.html | 41 +- docs/Next/interfaces/FindOptions.html | 84 +-- .../interfaces/GCPEncryptionKeyOptions.html | 14 +- docs/Next/interfaces/GridFSBucketOptions.html | 13 +- .../GridFSBucketReadStreamOptions.html | 8 +- ...FSBucketReadStreamOptionsWithRevision.html | 10 +- .../GridFSBucketWriteStreamOptions.html | 16 +- docs/Next/interfaces/GridFSChunk.html | 4 +- docs/Next/interfaces/GridFSFile.html | 8 +- docs/Next/interfaces/IndexDescription.html | 24 +- .../interfaces/IndexInformationOptions.html | 39 +- docs/Next/interfaces/InsertManyResult.html | 8 +- docs/Next/interfaces/InsertOneModel.html | 4 +- docs/Next/interfaces/InsertOneOptions.html | 31 +- docs/Next/interfaces/InsertOneResult.html | 6 +- .../interfaces/KMIPEncryptionKeyOptions.html | 8 +- .../interfaces/ListCollectionsOptions.html | 31 +- .../Next/interfaces/ListDatabasesOptions.html | 33 +- docs/Next/interfaces/ListDatabasesResult.html | 4 +- docs/Next/interfaces/MongoClientOptions.html | 112 ++-- .../interfaces/MongoNetworkErrorOptions.html | 4 +- docs/Next/interfaces/MongoOptions.html | 69 +-- docs/Next/interfaces/MonitorOptions.html | 12 +- docs/Next/interfaces/OperationOptions.html | 12 +- docs/Next/interfaces/ProxyOptions.html | 4 +- docs/Next/interfaces/RangeOptions.html | 10 +- docs/Next/interfaces/RenameOptions.html | 31 +- docs/Next/interfaces/ReplaceOneModel.html | 12 +- docs/Next/interfaces/ReplaceOptions.html | 33 +- docs/Next/interfaces/ResumeOptions.html | 4 +- .../interfaces/SearchIndexDescription.html | 8 +- .../TimeSeriesCollectionOptions.html | 4 +- docs/Next/interfaces/TransactionOptions.html | 45 +- docs/Next/interfaces/UpdateDescription.html | 10 +- docs/Next/interfaces/UpdateManyModel.html | 14 +- docs/Next/interfaces/UpdateOneModel.html | 14 +- docs/Next/interfaces/UpdateOptions.html | 33 +- docs/Next/interfaces/UpdateResult.html | 12 +- docs/Next/interfaces/UpdateStatement.html | 16 +- .../interfaces/ValidateCollectionOptions.html | 29 +- .../interfaces/WriteConcernErrorData.html | 4 +- .../interfaces/WriteConcernErrorResult.html | 4 +- .../Next/interfaces/WriteConcernSettings.html | 15 +- docs/Next/modules.html | 8 + docs/Next/types/AbstractCursorEvents.html | 2 +- docs/Next/types/AnyBulkWriteOperation.html | 2 +- docs/Next/types/BatchType.html | 2 +- docs/Next/types/CSFLEKMSTlsOptions.html | 2 +- docs/Next/types/ChangeStreamDocument.html | 2 +- docs/Next/types/ChangeStreamEvents.html | 5 +- .../types/ClientEncryptionSocketOptions.html | 2 +- .../types/ClientEncryptionTlsOptions.html | 2 +- docs/Next/types/ClientSessionEvents.html | 2 +- docs/Next/types/ConnectionEvents.html | 2 +- docs/Next/types/CursorFlag.html | 2 +- docs/Next/types/CursorTimeoutMode.html | 1 + docs/Next/types/DistinctOptions.html | 2 +- docs/Next/types/DropDatabaseOptions.html | 2 +- docs/Next/types/DropIndexesOptions.html | 2 +- docs/Next/types/EventEmitterWithState.html | 2 +- docs/Next/types/ExplainVerbosity.html | 2 +- docs/Next/types/ExplainVerbosityLike.html | 2 +- docs/Next/types/GridFSBucketEvents.html | 2 +- docs/Next/types/Hint.html | 2 +- docs/Next/types/IndexDescriptionCompact.html | 2 +- docs/Next/types/IndexDescriptionInfo.html | 2 +- docs/Next/types/IndexDirection.html | 2 +- docs/Next/types/IndexSpecification.html | 2 +- docs/Next/types/ListIndexesOptions.html | 2 +- docs/Next/types/MongoClientEvents.html | 2 +- docs/Next/types/OperationTime.html | 2 +- docs/Next/types/ProfilingLevel.html | 2 +- docs/Next/types/ProfilingLevelOptions.html | 2 +- docs/Next/types/RemoveUserOptions.html | 2 +- docs/Next/types/ResumeToken.html | 2 +- docs/Next/types/ReturnDocument.html | 2 +- docs/Next/types/RunCommandOptions.html | 5 +- docs/Next/types/RunCursorCommandOptions.html | 19 +- docs/Next/types/ServerEvents.html | 2 +- docs/Next/types/ServerSessionId.html | 2 +- docs/Next/types/SetProfilingLevelOptions.html | 2 +- docs/Next/types/TopologyEvents.html | 2 +- docs/Next/types/WithSessionCallback.html | 2 +- docs/Next/types/WithTransactionCallback.html | 2 +- docs/Next/variables/BatchType-1.html | 2 +- docs/Next/variables/CURSOR_FLAGS.html | 2 +- docs/Next/variables/CursorTimeoutMode-1.html | 15 + docs/Next/variables/ExplainVerbosity-1.html | 2 +- docs/Next/variables/ProfilingLevel-1.html | 2 +- docs/Next/variables/ReturnDocument-1.html | 2 +- docs/categories/index.xml | 5 +- docs/index.html | 34 +- docs/index.xml | 5 +- docs/tags/index.xml | 5 +- 212 files changed, 2463 insertions(+), 1659 deletions(-) create mode 100644 docs/Next/classes/ExplainableCursor.html create mode 100644 docs/Next/classes/MongoOperationTimeoutError.html create mode 100644 docs/Next/types/CursorTimeoutMode.html create mode 100644 docs/Next/variables/CursorTimeoutMode-1.html diff --git a/docs/404.html b/docs/404.html index 1a8ae099da8..ef939e8cf63 100644 --- a/docs/404.html +++ b/docs/404.html @@ -7,16 +7,16 @@ - +
Abstract
Abstract
Static
captureValue: boolean
+Static
captureValue: boolean
Change the default captureRejections
option on all new EventEmitter
objects.
Static
Readonly
captureValue: Symbol.for('nodejs.rejection')
See how to write a custom rejection handler
.
Static
Readonly
CLOSEStatic
defaultBy default, a maximum of 10
listeners can be registered for any single
+
Static
Readonly
CLOSEStatic
defaultBy default, a maximum of 10
listeners can be registered for any single
event. This limit can be changed for individual EventEmitter
instances
using the emitter.setMaxListeners(n)
method. To change the default
for allEventEmitter
instances, the events.defaultMaxListeners
property
@@ -90,15 +90,15 @@
regular 'error'
listener is installed.
The cursor is closed and all remaining locally buffered documents have been iterated.
-The cursor has no id until it receives a response from the initial cursor creating command.
+A killCursors
command was attempted on this cursor.
+
A killCursors
command was attempted on this cursor.
This is performed if the cursor id is non zero.
Optional
[captureRest
...args: AnyRestOptional
[captureRest
...args: AnyRestAdd a cursor flag to the cursor
The flag to set, must be one of following ['tailable', 'oplogReplay', 'noCursorTimeout', 'awaitData', 'partial' -.
The flag boolean value.
-Alias for emitter.on(eventName, listener)
.
Alias for emitter.on(eventName, listener)
.
Alias for emitter.on(eventName, listener)
.
Set the batch size for the cursor.
The number of documents to return per batch. See command documentation.
-Abstract
cloneReturns a new uninitialized copy of this cursor, with options matching those that have been set on the current instance
-Synchronously calls each of the listeners registered for the event named eventName
, in the order they were registered, passing the supplied arguments
+
Abstract
cloneReturns a new uninitialized copy of this cursor, with options matching those that have been set on the current instance
+Synchronously calls each of the listeners registered for the event named eventName
, in the order they were registered, passing the supplied arguments
to each.
Returns true
if the event had listeners, false
otherwise.
import { EventEmitter } from 'node:events';
const myEmitter = new EventEmitter();
// First listener
myEmitter.on('event', function firstListener() {
console.log('Helloooo! first listener');
});
// Second listener
myEmitter.on('event', function secondListener(arg1, arg2) {
console.log(`event with parameters ${arg1}, ${arg2} in second listener`);
});
// Third listener
myEmitter.on('event', function thirdListener(...args) {
const parameters = args.join(', ');
console.log(`event with parameters ${parameters} in third listener`);
});
console.log(myEmitter.listeners('event'));
myEmitter.emit('event', 1, 2, 3, 4, 5);
// Prints:
// [
// [Function: firstListener],
// [Function: secondListener],
// [Function: thirdListener]
// ]
// Helloooo! first listener
// event with parameters 1, 2 in second listener
// event with parameters 1, 2, 3, 4, 5 in third listener
@@ -128,10 +128,10 @@
Returns the current max listener value for the EventEmitter
which is either
set by emitter.setMaxListeners(n)
or defaults to defaultMaxListeners.
Returns the number of listeners listening for the event named eventName
.
+
Returns the number of listeners listening for the event named eventName
.
If listener
is provided, it will return how many times the listener is found
in the list of the listeners of the event.
Alias for emitter.removeListener()
.
Alias for emitter.removeListener()
.
Alias for emitter.removeListener()
.
v10.0.0
@@ -315,7 +315,7 @@Removes all listeners, or those of the specified eventName
.
It is bad practice to remove listeners added elsewhere in the code,
particularly when the EventEmitter
instance was created by some other
component or module (e.g. sockets or file streams).
By default EventEmitter
s will print a warning if more than 10
listeners are
added for a particular event. This is a useful default that helps finding
memory leaks. The emitter.setMaxListeners()
method allows the limit to be
modified for this specific EventEmitter
instance. The value can be set to Infinity
(or 0
) to indicate an unlimited number of listeners.
Returns a reference to the EventEmitter
, so that calls can be chained.
Optional
options: CursorStreamOptionsReturns an array of documents. The caller is responsible for making sure that there +
Optional
options: CursorStreamOptionsReturns an array of documents. The caller is responsible for making sure that there is enough memory to store the results. Note that the array only contains partial results when this cursor had been previously accessed. In that case, cursor.rewind() can be used to reset the cursor.
-Set the ReadPreference for the cursor.
-Set the ReadPreference for the cursor.
+Set the ReadPreference for the cursor.
+Set the ReadPreference for the cursor.
The new read preference for the cursor.
-Static
addStatic
addExperimental
Listens once to the abort
event on the provided signal
.
Listening to the abort
event on abort signals is unsafe and may
lead to resource leaks since another third party with the signal can
call e.stopImmediatePropagation()
. Unfortunately Node.js cannot change
diff --git a/docs/Next/classes/Admin.html b/docs/Next/classes/Admin.html
index e5aea571b01..0416fc83d16 100644
--- a/docs/Next/classes/Admin.html
+++ b/docs/Next/classes/Admin.html
@@ -15,7 +15,7 @@
validate
Retrieve the server build information
Optional
options: CommandOperationOptionsOptional settings for the command
-Execute a command
+Execute a command
The driver will ensure the following fields are attached to the command sent to the server:
lsid
- sourced from an implicit session or options.sessionOptional
options: RunCommandOptionsOptional settings for the command
List the available databases
Optional
options: ListDatabasesOptionsOptional settings for the command
-Ping the MongoDB server and retrieve results
+Ping the MongoDB server and retrieve results
Optional
options: CommandOperationOptionsOptional settings for the command
-Remove a user from a database
The username to remove
Optional
options: CommandOperationOptionsOptional settings for the command
-Get ReplicaSet status
+Get ReplicaSet status
Optional
options: CommandOperationOptionsOptional settings for the command
-Retrieve the server build information
+Retrieve the server build information
Optional
options: CommandOperationOptionsOptional settings for the command
-Retrieve this db's server status.
+Retrieve this db's server status.
Optional
options: CommandOperationOptionsOptional settings for the command
-Validate an existing collection
+Validate an existing collection
The name of the collection to validate.
Optional settings for the command
-
An alias for AbstractCursor.close|AbstractCursor.close().
-