diff --git a/docs/Next/classes/AbstractCursor.html b/docs/Next/classes/AbstractCursor.html index b8bcacd971d..9b784a14547 100644 --- a/docs/Next/classes/AbstractCursor.html +++ b/docs/Next/classes/AbstractCursor.html @@ -1,4 +1,4 @@ -AbstractCursor | mongodb
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractCursor<TSchema, CursorEvents>

Type parameters

Hierarchy

Index

Events

CLOSE: "close" = ...

Properties

captureRejectionSymbol: typeof captureRejectionSymbol
captureRejections: boolean
+AbstractCursor | mongodb
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractCursor<TSchema, CursorEvents>

Type parameters

Hierarchy

Index

Events

CLOSE: "close" = ...

Properties

captureRejectionSymbol: typeof captureRejectionSymbol
captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

defaultMaxListeners: number
errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring 'error' @@ -7,27 +7,27 @@

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

-

Accessors

  • get closed(): boolean
  • get id(): undefined | Long
  • get killed(): boolean
  • get loadBalanced(): boolean

Methods

  • [asyncIterator](): AsyncIterator<TSchema, void, undefined>
  • addCursorFlag(flag: "tailable" | "awaitData" | "noCursorTimeout" | "oplogReplay" | "exhaust" | "partial", value: boolean): AbstractCursor<TSchema, CursorEvents>

Accessors

  • get closed(): boolean
  • get id(): undefined | Long
  • get killed(): boolean
  • get loadBalanced(): boolean

Methods

  • [asyncIterator](): AsyncIterator<TSchema, void, undefined>
  • addCursorFlag(flag: "tailable" | "awaitData" | "noCursorTimeout" | "oplogReplay" | "exhaust" | "partial", value: boolean): AbstractCursor<TSchema, CursorEvents>
  • Add a cursor flag to the cursor

    Parameters

    • flag: "tailable" | "awaitData" | "noCursorTimeout" | "oplogReplay" | "exhaust" | "partial"

      The flag to set, must be one of following ['tailable', 'oplogReplay', 'noCursorTimeout', 'awaitData', 'partial' -.

    • value: boolean

      The flag boolean value.

      -

    Returns AbstractCursor<TSchema, CursorEvents>

Returns AbstractCursor<TSchema, CursorEvents>

  • bufferedCount(): number

Returns AbstractCursor<TSchema, CursorEvents>

  • bufferedCount(): number
  • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<CursorEvents[EventKey]>): boolean
  • Type parameters

    • EventKey: string | number | symbol

    Parameters

    • event: symbol | EventKey
    • Rest ...args: Parameters<CursorEvents[EventKey]>

    Returns boolean

  • eventNames(): string[]
  • forEach(iterator: (doc: TSchema) => boolean | void): Promise<void>
  • forEach(iterator: (doc: TSchema) => boolean | void, callback: Callback<void>): void
  • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<CursorEvents[EventKey]>): boolean
  • Type parameters

    • EventKey: string | number | symbol

    Parameters

    • event: symbol | EventKey
    • Rest ...args: Parameters<CursorEvents[EventKey]>

    Returns boolean

  • eventNames(): string[]
  • forEach(iterator: (doc: TSchema) => boolean | void): Promise<void>
  • forEach(iterator: (doc: TSchema) => boolean | void, callback: Callback<void>): void
  • Iterates over all the documents for this cursor using the iterator, callback pattern.

    Parameters

    • iterator: (doc: TSchema) => boolean | void

      The iteration callback.

      -
        • (doc: TSchema): boolean | void
        • Parameters

          • doc: TSchema

          Returns boolean | void

    Returns Promise<void>

  • Parameters

    • iterator: (doc: TSchema) => boolean | void
        • (doc: TSchema): boolean | void
        • Parameters

          • doc: TSchema

          Returns boolean | void

    • callback: Callback<void>

    Returns void

  • getMaxListeners(): number
  • hasNext(): Promise<boolean>
  • hasNext(callback: Callback<boolean>): void
  • listenerCount<EventKey>(type: string | symbol | EventKey): number
  • listeners<EventKey>(event: string | symbol | EventKey): CursorEvents[EventKey][]

Returns Promise<void>

  • Parameters

    • iterator: (doc: TSchema) => boolean | void
        • (doc: TSchema): boolean | void
        • Parameters

          • doc: TSchema

          Returns boolean | void

    • callback: Callback<void>

    Returns void

    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • listeners<EventKey>(event: string | symbol | EventKey): CursorEvents[EventKey][]
    • Map all documents using the provided function If there is a transform set on the cursor, that will be called first and the result passed to this function's transform.

      @@ -39,28 +39,28 @@

      Type parameters

      • T = any

      Parameters

      • transform: (doc: TSchema) => T

        The mapping transformation method.

        -
          • (doc: TSchema): T
          • Parameters

            • doc: TSchema

            Returns T

      Returns AbstractCursor<T, AbstractCursorEvents>

    Returns AbstractCursor<T, AbstractCursorEvents>

    • Set a maxTimeMS on the cursor query, allowing for hard timeout limits on queries (Only supported on MongoDB 2.6 or higher)

      Parameters

      • value: number

        Number of milliseconds to wait before aborting the query.

        -

      Returns AbstractCursor<TSchema, CursorEvents>

    • next(): Promise<null | TSchema>
    • next(callback: Callback<null | TSchema>): void
    • next(callback?: Callback<null | TSchema>): void | Promise<null | TSchema>

    Returns AbstractCursor<TSchema, CursorEvents>

    • next(): Promise<null | TSchema>
    • next(callback: Callback<null | TSchema>): void
    • next(callback?: Callback<null | TSchema>): void | Promise<null | TSchema>
    • rawListeners<EventKey>(event: string | symbol | EventKey): CursorEvents[EventKey][]
    • readBufferedDocuments(number?: number): TSchema[]
    • rawListeners<EventKey>(event: string | symbol | EventKey): CursorEvents[EventKey][]
    • readBufferedDocuments(number?: number): TSchema[]
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): AbstractCursor<TSchema, CursorEvents>
    • rewind(): void
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): AbstractCursor<TSchema, CursorEvents>
    • rewind(): void
    • Rewind this cursor to its uninitialized state. Any options that are present on the cursor will remain in effect. Iterating this cursor will cause new queries to be sent to the server, even if the resultant data has already been retrieved by this cursor.

      -

      Returns void

    • toArray(): Promise<TSchema[]>
    • toArray(callback: Callback<TSchema[]>): void
    • toArray(): Promise<TSchema[]>
    • toArray(callback: Callback<TSchema[]>): void
    • Returns 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.

      -

      Returns Promise<TSchema[]>

    • Parameters

      Returns void

    • tryNext(): Promise<null | TSchema>
    • tryNext(callback: Callback<null | TSchema>): void
    • tryNext(): Promise<null | TSchema>
    • tryNext(callback: Callback<null | TSchema>): void
    • Set the ReadPreference for the cursor.

      Parameters

      • readPreference: ReadPreferenceLike

        The new read preference for the cursor.

        diff --git a/docs/Next/classes/Admin.html b/docs/Next/classes/Admin.html index 9fe65ed39a9..ddda1c7dc4f 100644 --- a/docs/Next/classes/Admin.html +++ b/docs/Next/classes/Admin.html @@ -4,32 +4,32 @@

        ADMIN Cannot directly be instantiated

        example
        const MongoClient = require('mongodb').MongoClient;
        const test = require('assert');
        // Connection url
        const url = 'mongodb://localhost:27017';
        // Database Name
        const dbName = 'test';

        // Connect using MongoClient
        MongoClient.connect(url, function(err, client) {
        // Use the admin database for the operation
        const adminDb = client.db(dbName).admin();

        // List all the available databases
        adminDb.listDatabases(function(err, dbs) {
        expect(err).to.not.exist;
        test.ok(dbs.databases.length > 0);
        client.close();
        });
        });
        -

    Hierarchy

    • Admin

    Index

    Methods

    Hierarchy

    • Admin

    Index

    Methods

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    • username: string
    • password: string

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Returns Promise<boolean>

  • Parameters

    • username: string
    • callback: Callback<boolean>

    Returns void

  • Parameters

    Returns Promise<boolean>

  • Parameters

    Returns void

  • Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/AggregationCursor.html b/docs/Next/classes/AggregationCursor.html index 691dc20e041..f03f032befe 100644 --- a/docs/Next/classes/AggregationCursor.html +++ b/docs/Next/classes/AggregationCursor.html @@ -3,7 +3,7 @@ allowing for iteration over the results returned from the underlying query. It supports one by one document iteration, conversion to an array or can be iterated as a Node 4.X or higher stream

    -

    Type parameters

    Hierarchy

    Index

    Events

    CLOSE: "close" = ...

    Properties

    captureRejectionSymbol: typeof captureRejectionSymbol
    captureRejections: boolean
    +

    Type parameters

    Hierarchy

    Index

    Events

    CLOSE: "close" = ...

    Properties

    captureRejectionSymbol: typeof captureRejectionSymbol
    captureRejections: boolean

    Sets or gets the default captureRejection value for all emitters.

    defaultMaxListeners: number
    errorMonitor: typeof errorMonitor

    This symbol shall be used to install a listener for only monitoring 'error' @@ -12,36 +12,36 @@

    Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

    -

    Accessors

    • get closed(): boolean
    • get id(): undefined | Long
    • get killed(): boolean
    • get loadBalanced(): boolean

    Methods

    • [asyncIterator](): AsyncIterator<TSchema, void, undefined>
    • addCursorFlag(flag: "tailable" | "awaitData" | "noCursorTimeout" | "oplogReplay" | "exhaust" | "partial", value: boolean): AggregationCursor<TSchema>

    Accessors

    • get closed(): boolean
    • get id(): undefined | Long
    • get killed(): boolean
    • get loadBalanced(): boolean

    Methods

    • [asyncIterator](): AsyncIterator<TSchema, void, undefined>
    • addCursorFlag(flag: "tailable" | "awaitData" | "noCursorTimeout" | "oplogReplay" | "exhaust" | "partial", value: boolean): AggregationCursor<TSchema>
    • Add a cursor flag to the cursor

      Parameters

      • flag: "tailable" | "awaitData" | "noCursorTimeout" | "oplogReplay" | "exhaust" | "partial"

        The flag to set, must be one of following ['tailable', 'oplogReplay', 'noCursorTimeout', 'awaitData', 'partial' -.

      • value: boolean

        The flag boolean value.

        -

      Returns AggregationCursor<TSchema>

    Returns AggregationCursor<TSchema>

    • bufferedCount(): number

    Returns AggregationCursor<TSchema>

    • bufferedCount(): number
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • forEach(iterator: (doc: TSchema) => boolean | void): Promise<void>
    • forEach(iterator: (doc: TSchema) => boolean | void, callback: Callback<void>): void
    • forEach(iterator: (doc: TSchema) => boolean | void): Promise<void>
    • forEach(iterator: (doc: TSchema) => boolean | void, callback: Callback<void>): void
    • Iterates over all the documents for this cursor using the iterator, callback pattern.

      Parameters

      • iterator: (doc: TSchema) => boolean | void

        The iteration callback.

        -
          • (doc: TSchema): boolean | void
          • Parameters

            • doc: TSchema

            Returns boolean | void

      Returns Promise<void>

    • Parameters

      • iterator: (doc: TSchema) => boolean | void
          • (doc: TSchema): boolean | void
          • Parameters

            • doc: TSchema

            Returns boolean | void

      • callback: Callback<void>

      Returns void

    • getMaxListeners(): number

    Returns Promise<void>

  • Parameters

    • iterator: (doc: TSchema) => boolean | void
        • (doc: TSchema): boolean | void
        • Parameters

          • doc: TSchema

          Returns boolean | void

    • callback: Callback<void>

    Returns void

    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Map all documents using the provided function If there is a transform set on the cursor, that will be called first and the result passed to this function's transform.

      @@ -49,17 +49,17 @@ it does not return a new instance of a cursor. This means when calling map, you should always assign the result to a new variable in order to get a correctly typed cursor variable. Take note of the following example:

      -

      Type parameters

      • T

      Parameters

      • transform: (doc: TSchema) => T
          • (doc: TSchema): T
          • Parameters

            • doc: TSchema

            Returns T

      Returns AggregationCursor<T>

    • next(): Promise<null | TSchema>
    • next(callback: Callback<null | TSchema>): void
    • next(callback?: Callback<null | TSchema>): void | Promise<null | TSchema>

    Returns AggregationCursor<TSchema>

    • next(): Promise<null | TSchema>
    • next(callback: Callback<null | TSchema>): void
    • next(callback?: Callback<null | TSchema>): void | Promise<null | TSchema>
    • Add a project stage to the aggregation pipeline

      remarks

      In order to strictly type this function you must provide an interface that represents the effect of your projection on the result documents.

      @@ -75,30 +75,30 @@ Take note of the following example:

      example
      const cursor: AggregationCursor<{ a: number; b: string }> = coll.aggregate([]);
      const projectCursor = cursor.project<{ a: number }>({ _id: 0, a: true });
      const aPropOnlyArray: {a: number}[] = await projectCursor.toArray();

      // or always use chaining and save the final cursor

      const cursor = coll.aggregate().project<{ a: string }>({
      _id: 0,
      a: { $convert: { input: '$a', to: 'string' }
      }});
      -

      Type parameters

      Parameters

      Returns AggregationCursor<T>

    • readBufferedDocuments(number?: number): TSchema[]
    • readBufferedDocuments(number?: number): TSchema[]
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): AggregationCursor<TSchema>
    • rewind(): void
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): AggregationCursor<TSchema>
    • rewind(): void
    • Rewind this cursor to its uninitialized state. Any options that are present on the cursor will remain in effect. Iterating this cursor will cause new queries to be sent to the server, even if the resultant data has already been retrieved by this cursor.

      -

      Returns void

    • toArray(): Promise<TSchema[]>
    • toArray(callback: Callback<TSchema[]>): void
    • toArray(): Promise<TSchema[]>
    • toArray(callback: Callback<TSchema[]>): void
    • tryNext(): Promise<null | TSchema>
    • tryNext(callback: Callback<null | TSchema>): void
    • tryNext(): Promise<null | TSchema>
    • tryNext(callback: Callback<null | TSchema>): void

    Type parameters

    Hierarchy

    • Batch

    Index

    Constructors

    • new Batch<T>(batchType: BatchType, originalZeroIndex: number): Batch<T>

    Properties

    batchType: BatchType
    currentIndex: number
    operations: T[]
    originalIndexes: number[]
    originalZeroIndex: number
    size: number
    sizeBytes: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/BulkOperationBase.html b/docs/Next/classes/BulkOperationBase.html index eb131895620..bc49a7848cc 100644 --- a/docs/Next/classes/BulkOperationBase.html +++ b/docs/Next/classes/BulkOperationBase.html @@ -1,12 +1,12 @@ -BulkOperationBase | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class BulkOperationBase

    Hierarchy

    Index

    Properties

    isOrdered: boolean
    operationId?: number

    Accessors

    Methods

    Methods

    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<{ cancel: any }[EventKey]>): boolean
    • eventNames(): string[]
    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • listeners<EventKey>(event: string | symbol | EventKey): { cancel: any }[EventKey][]
    • rawListeners<EventKey>(event: string | symbol | EventKey): { cancel: any }[EventKey][]
    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]

    Methods

    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<{ cancel: any }[EventKey]>): boolean
    • eventNames(): string[]
    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • listeners<EventKey>(event: string | symbol | EventKey): { cancel: any }[EventKey][]
    • rawListeners<EventKey>(event: string | symbol | EventKey): { cancel: any }[EventKey][]
    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<ClientSessionEvents[EventKey]>): boolean
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<ClientSessionEvents[EventKey]>): boolean
    • eventNames(): string[]
    • getMaxListeners(): number
    • inTransaction(): boolean
    • Returns boolean

      whether this session is currently in a transaction or not

      -
    • incrementTransactionNumber(): void

    Returns boolean

    • eventNames(): string[]
    • getMaxListeners(): number
    • inTransaction(): boolean
    • Returns boolean

      whether this session is currently in a transaction or not

      +
    • incrementTransactionNumber(): void
    • Increment the transaction number on the internal ServerSession

      -

      Returns void

    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): ClientSession
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): ClientSession
    • toBSON(): never

    Returns void

    • toBSON(): never
    • This is here to ensure that ClientSession is never serialized to BSON.

      -

      Returns never

    • Runs a provided lambda within a transaction, retrying either the commit operation or entire transaction as needed (and when the error permits) to better ensure that the transaction can complete successfully.

      diff --git a/docs/Next/classes/Collection.html b/docs/Next/classes/Collection.html index 3fabce77dba..01fa2118c5b 100644 --- a/docs/Next/classes/Collection.html +++ b/docs/Next/classes/Collection.html @@ -4,32 +4,32 @@

      COLLECTION Cannot directly be instantiated

      example
      const MongoClient = require('mongodb').MongoClient;
      const test = require('assert');
      // Connection url
      const url = 'mongodb://localhost:27017';
      // Database Name
      const dbName = 'test';
      // Connect using MongoClient
      MongoClient.connect(url, function(err, client) {
      // Create a collection we want to drop later
      const col = client.db(dbName).collection('createIndexExample1');
      // Show that duplicate records got dropped
      col.find({}).toArray(function(err, items) {
      expect(err).to.not.exist;
      test.equal(4, items.length);
      client.close();
      });
      });
      -

    Type parameters

    Hierarchy

    • Collection

    Index

    Accessors

    • get collectionName(): string

    Type parameters

    Hierarchy

    • Collection

    Index

    Accessors

    • get collectionName(): string
    • get dbName(): string
    • get dbName(): string
    • get hint(): undefined | Hint
    • set hint(v: undefined | Hint): void
    • get hint(): undefined | Hint
    • set hint(v: undefined | Hint): void
    • get namespace(): string
    • get namespace(): string
    • The namespace of this collection, in the format ${this.dbName}.${this.collectionName}

      -

      Returns string

    • The current readConcern of the collection. If not explicitly defined for this collection, will be inherited from the parent DB

      -

      Returns undefined | ReadConcern

    • The current readPreference of the collection. If not explicitly defined for this collection, will be inherited from the parent DB

      -

      Returns undefined | ReadPreference

    • The current writeConcern of the collection. If not explicitly defined for this collection, will be inherited from the parent DB

      -

      Returns undefined | WriteConcern

    Methods

    Methods

    Returns AggregationCursor<T>

    Returns Promise<BulkWriteResult>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<BulkWriteResult>

  • Parameters

    Returns void

    • An estimated count of matching documents in the db to a filter.

      NOTE: This method has been deprecated, since it does not provide an accurate count of the documents in a collection. To obtain an accurate count of documents in the collection, use {@link Collection#countDocuments| countDocuments}. To obtain an estimated count of all documents in the collection, use {@link Collection#estimatedDocumentCount| estimatedDocumentCount}.

      deprecated

      use {@link Collection#countDocuments| countDocuments} or {@link Collection#estimatedDocumentCount| estimatedDocumentCount} instead

      -

      Returns Promise<number>

    • Parameters

      Returns void

    • Parameters

      Returns Promise<number>

    • Parameters

      Returns void

    • Parameters

      Returns Promise<number>

    • Parameters

      Returns void | Promise<number>

    • Creates an index on the db and collection collection.

      example
      const collection = client.db('foo').collection('bar');

      await collection.createIndex({ a: 1, b: -1 });

      // Alternate syntax for { c: 1, d: -1 } that ensures order of indexes
      await collection.createIndex([ [c, 1], [d, -1] ]);

      // Equivalent to { e: 1 }
      await collection.createIndex('e');

      // Equivalent to { f: 1, g: 1 }
      await collection.createIndex(['f', 'g'])

      // Equivalent to { h: 1, i: -1 }
      await collection.createIndex([ { h: 1 }, { i: -1 } ]);

      // Equivalent to { j: 1, k: -1, l: 2d }
      await collection.createIndex(['j', ['k', -1], { l: '2d' }])

      Parameters

      • indexSpec: IndexSpecification

        The field name or index specification to create an index for

        -

      Returns Promise<string>

    • Parameters

      Returns void

    • Parameters

      Returns Promise<string>

    • Parameters

      Returns void

    Returns Promise<string>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<string>

  • Parameters

    Returns void

  • Returns Promise<string[]>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<string[]>

  • Parameters

    Returns void

  • Returns Promise<DeleteResult>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<DeleteResult>

  • Parameters

    Returns void

  • Returns Promise<DeleteResult>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<DeleteResult>

  • Parameters

    Returns void

  • Returns Promise<Flatten<WithId<TSchema>[Key]>[]>

  • Type parameters

    • Key: string | number | symbol

    Parameters

    Returns void

  • Type parameters

    • Key: string | number | symbol

    Parameters

    • key: Key
    • filter: Filter<TSchema>

    Returns Promise<Flatten<WithId<TSchema>[Key]>[]>

  • Type parameters

    • Key: string | number | symbol

    Parameters

    Returns void

  • Type parameters

    • Key: string | number | symbol

    Parameters

    Returns Promise<Flatten<WithId<TSchema>[Key]>[]>

  • Type parameters

    • Key: string | number | symbol

    Parameters

    Returns void

  • Parameters

    • key: string

    Returns Promise<any[]>

  • Parameters

    Returns void

  • Parameters

    • key: string
    • filter: Filter<TSchema>

    Returns Promise<any[]>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<any[]>

  • Parameters

    Returns void

  • Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Returns Promise<ModifyResult<TSchema>>

  • Parameters

    Returns Promise<ModifyResult<TSchema>>

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns Promise<ModifyResult<TSchema>>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<ModifyResult<TSchema>>

  • Parameters

    Returns void

  • Returns Promise<ModifyResult<TSchema>>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<ModifyResult<TSchema>>

  • Parameters

    Returns void

    • indexExists(indexes: string | string[]): Promise<boolean>
    • indexExists(indexes: string | string[], callback: Callback<boolean>): void
    • indexExists(indexes: string | string[], options: IndexInformationOptions): Promise<boolean>
    • indexExists(indexes: string | string[], options: IndexInformationOptions, callback: Callback<boolean>): void
    • indexExists(indexes: string | string[]): Promise<boolean>
    • indexExists(indexes: string | string[], callback: Callback<boolean>): void
    • indexExists(indexes: string | string[], options: IndexInformationOptions): Promise<boolean>
    • indexExists(indexes: string | string[], options: IndexInformationOptions, callback: Callback<boolean>): void

    Returns Promise<boolean>

  • Parameters

    • indexes: string | string[]
    • callback: Callback<boolean>

    Returns void

  • Parameters

    Returns Promise<boolean>

  • Parameters

    Returns void

    • Inserts a single document or a an array of documents into MongoDB. If documents passed in do not contain the _id field, one will be added to each of the documents missing it by the driver, mutating the document. This behavior can be overridden by setting the forceServerObjectId flag.

      @@ -159,34 +159,34 @@

      Optional settings for the command

    • callback: Callback<InsertManyResult<TSchema>>

      An optional callback, a Promise will be returned if none is provided

      -

    Returns void | Promise<InsertManyResult<TSchema>>

    Returns void | Promise<InsertManyResult<TSchema>>

    Returns Promise<InsertManyResult<TSchema>>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<InsertManyResult<TSchema>>

  • Parameters

    Returns void

  • Returns Promise<InsertOneResult<TSchema>>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<InsertOneResult<TSchema>>

  • Parameters

    Returns void

  • Returns ListIndexesCursor

    Returns Promise<Document | Document[]>

  • Type parameters

    • TKey = any

    • TValue = any

    Parameters

    Returns void

  • Type parameters

    • TKey = any

    • TValue = any

    Parameters

    Returns Promise<Document | Document[]>

  • Type parameters

    • TKey = any

    • TValue = any

    Parameters

    Returns void

    • Remove documents.

      deprecated

      use deleteOne, deleteMany or bulkWrite

      Parameters

      • selector: Filter<TSchema>
        @@ -195,20 +195,20 @@

        Optional settings for the command

      • callback: Callback<any>

        An optional callback, a Promise will be returned if none is provided

        -

      Returns void | Promise<DeleteResult>

    Returns void | Promise<DeleteResult>

    Returns Promise<Collection<Document>>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Collection<Document>>

  • Parameters

    Returns void

  • Returns Promise<Document | UpdateResult>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document | UpdateResult>

  • Parameters

    Returns void

    • Updates documents.

      deprecated

      use updateOne, updateMany or bulkWrite

      Parameters

      • selector: Filter<TSchema>
        @@ -219,19 +219,19 @@

        Optional settings for the command

      • callback: Callback<Document>

        An optional callback, a Promise will be returned if none is provided

        -

      Returns void | Promise<UpdateResult>

    Returns void | Promise<UpdateResult>

    Returns Promise<Document | UpdateResult>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document | UpdateResult>

  • Parameters

    Returns void

  • Returns Promise<UpdateResult>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<UpdateResult>

  • Parameters

    Returns void

  • Hierarchy

    • CommandFailedEvent

    Index

    Properties

    address: string
    commandName: string
    connectionId?: string | number
    duration: number
    failure: Error
    requestId: number
    serviceId?: ObjectId

    Accessors

    • get hasServiceId(): boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/CommandStartedEvent.html b/docs/Next/classes/CommandStartedEvent.html index 8b70b2163b3..e19e5a2a3da 100644 --- a/docs/Next/classes/CommandStartedEvent.html +++ b/docs/Next/classes/CommandStartedEvent.html @@ -1,3 +1,3 @@ CommandStartedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class CommandStartedEvent

    An event indicating the start of a given

    -

    Hierarchy

    • CommandStartedEvent

    Index

    Properties

    address: string
    command: Document
    commandName: string
    commandObj?: Document
    connectionId?: string | number
    databaseName: string
    requestId: number
    serviceId?: ObjectId

    Accessors

    • get hasServiceId(): boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +

    Hierarchy

    Index

    Properties

    address: string
    command: Document
    commandName: string
    commandObj?: Document
    connectionId?: string | number
    databaseName: string
    requestId: number
    serviceId?: ObjectId

    Accessors

    • get hasServiceId(): boolean

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/CommandSucceededEvent.html b/docs/Next/classes/CommandSucceededEvent.html index 691a7857aff..6e56bb456b2 100644 --- a/docs/Next/classes/CommandSucceededEvent.html +++ b/docs/Next/classes/CommandSucceededEvent.html @@ -1,3 +1,3 @@ CommandSucceededEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class CommandSucceededEvent

    An event indicating the success of a given command

    -

    Hierarchy

    • CommandSucceededEvent

    Index

    Properties

    address: string
    commandName: string
    connectionId?: string | number
    duration: number
    reply: unknown
    requestId: number
    serviceId?: ObjectId

    Accessors

    • get hasServiceId(): boolean

    Generated using TypeDoc

    \ No newline at end of file +

    Hierarchy

    Index

    Properties

    address: string
    commandName: string
    connectionId?: string | number
    duration: number
    reply: unknown
    requestId: number
    serviceId?: ObjectId

    Accessors

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionCheckOutFailedEvent.html b/docs/Next/classes/ConnectionCheckOutFailedEvent.html index 5fa180bd2ad..e728a6f1afb 100644 --- a/docs/Next/classes/ConnectionCheckOutFailedEvent.html +++ b/docs/Next/classes/ConnectionCheckOutFailedEvent.html @@ -1,9 +1,9 @@ ConnectionCheckOutFailedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionCheckOutFailedEvent

    An event published when a request to check a connection out fails

    -

    Hierarchy

    Index

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    reason: string | AnyError
    +
    reason: string | AnyError

    The reason the attempt to check out failed

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionCheckOutStartedEvent.html b/docs/Next/classes/ConnectionCheckOutStartedEvent.html index ffa02d7095d..0478803e49e 100644 --- a/docs/Next/classes/ConnectionCheckOutStartedEvent.html +++ b/docs/Next/classes/ConnectionCheckOutStartedEvent.html @@ -1,7 +1,7 @@ ConnectionCheckOutStartedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionCheckOutStartedEvent

    An event published when a request to check a connection out begins

    -

    Hierarchy

    Index

    Properties

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionCheckedInEvent.html b/docs/Next/classes/ConnectionCheckedInEvent.html index 4defc33b3fe..9b193dc84bf 100644 --- a/docs/Next/classes/ConnectionCheckedInEvent.html +++ b/docs/Next/classes/ConnectionCheckedInEvent.html @@ -1,9 +1,9 @@ ConnectionCheckedInEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionCheckedInEvent

    An event published when a connection is checked into the connection pool

    -

    Hierarchy

    Index

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    connectionId: number | "<monitor>"
    +
    connectionId: number | "<monitor>"

    The id of the connection

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionCheckedOutEvent.html b/docs/Next/classes/ConnectionCheckedOutEvent.html index 0eba80f4d1e..9160e3146c4 100644 --- a/docs/Next/classes/ConnectionCheckedOutEvent.html +++ b/docs/Next/classes/ConnectionCheckedOutEvent.html @@ -1,9 +1,9 @@ ConnectionCheckedOutEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionCheckedOutEvent

    An event published when a connection is checked out of the connection pool

    -

    Hierarchy

    Index

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    connectionId: number | "<monitor>"
    +
    connectionId: number | "<monitor>"

    The id of the connection

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionClosedEvent.html b/docs/Next/classes/ConnectionClosedEvent.html index cd30dec7f9e..c5eea4bef32 100644 --- a/docs/Next/classes/ConnectionClosedEvent.html +++ b/docs/Next/classes/ConnectionClosedEvent.html @@ -1,11 +1,11 @@ ConnectionClosedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionClosedEvent

    An event published when a connection is closed

    -

    Hierarchy

    Index

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    connectionId: number | "<monitor>"
    +
    connectionId: number | "<monitor>"

    The id of the connection

    -
    reason: string
    +
    reason: string

    The reason the connection was closed

    -
    serviceId?: ObjectId
    time: Date
    +
    serviceId?: ObjectId
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionCreatedEvent.html b/docs/Next/classes/ConnectionCreatedEvent.html index 31dc57fa27e..225a7701b85 100644 --- a/docs/Next/classes/ConnectionCreatedEvent.html +++ b/docs/Next/classes/ConnectionCreatedEvent.html @@ -1,9 +1,9 @@ ConnectionCreatedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionCreatedEvent

    An event published when a connection pool creates a new connection

    -

    Hierarchy

    Index

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    connectionId: number | "<monitor>"
    +
    connectionId: number | "<monitor>"

    A monotonically increasing, per-pool id for the newly created connection

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionPoolClearedEvent.html b/docs/Next/classes/ConnectionPoolClearedEvent.html index a5248e6b617..8ba99ee8450 100644 --- a/docs/Next/classes/ConnectionPoolClearedEvent.html +++ b/docs/Next/classes/ConnectionPoolClearedEvent.html @@ -1,7 +1,7 @@ ConnectionPoolClearedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionPoolClearedEvent

    An event published when a connection pool is cleared

    -

    Hierarchy

    Index

    Properties

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionPoolClosedEvent.html b/docs/Next/classes/ConnectionPoolClosedEvent.html index 54ee60c84c2..ec49a8c549d 100644 --- a/docs/Next/classes/ConnectionPoolClosedEvent.html +++ b/docs/Next/classes/ConnectionPoolClosedEvent.html @@ -1,7 +1,7 @@ ConnectionPoolClosedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionPoolClosedEvent

    An event published when a connection pool is closed

    -

    Hierarchy

    Index

    Properties

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionPoolCreatedEvent.html b/docs/Next/classes/ConnectionPoolCreatedEvent.html index febc362024d..66fd8a7f8f4 100644 --- a/docs/Next/classes/ConnectionPoolCreatedEvent.html +++ b/docs/Next/classes/ConnectionPoolCreatedEvent.html @@ -1,9 +1,9 @@ ConnectionPoolCreatedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionPoolCreatedEvent

    An event published when a connection pool is created

    -

    Hierarchy

    Index

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    +

    The options used to create this connection pool

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionPoolMonitoringEvent.html b/docs/Next/classes/ConnectionPoolMonitoringEvent.html index a8596809159..df40e6fc942 100644 --- a/docs/Next/classes/ConnectionPoolMonitoringEvent.html +++ b/docs/Next/classes/ConnectionPoolMonitoringEvent.html @@ -1,7 +1,7 @@ ConnectionPoolMonitoringEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionPoolMonitoringEvent

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ConnectionReadyEvent.html b/docs/Next/classes/ConnectionReadyEvent.html index ccff9e6e08e..b4a01916ef6 100644 --- a/docs/Next/classes/ConnectionReadyEvent.html +++ b/docs/Next/classes/ConnectionReadyEvent.html @@ -1,9 +1,9 @@ ConnectionReadyEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ConnectionReadyEvent

    An event published when a connection is ready for use

    -

    Hierarchy

    Index

    Properties

    address: string
    +

    Hierarchy

    Index

    Properties

    address: string

    The address (host/port pair) of the pool

    -
    connectionId: number | "<monitor>"
    +
    connectionId: number | "<monitor>"

    The id of the connection

    -
    time: Date
    +
    time: Date

    A timestamp when the event was created

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/Db.html b/docs/Next/classes/Db.html index 8acf1a0870f..9d4c9765bfb 100644 --- a/docs/Next/classes/Db.html +++ b/docs/Next/classes/Db.html @@ -2,7 +2,7 @@

    The Db class is a class that represents a MongoDB Database.

    example
    const { MongoClient } = require('mongodb');
    // Connection url
    const url = 'mongodb://localhost:27017';
    // Database Name
    const dbName = 'test';
    // Connect using MongoClient
    MongoClient.connect(url, function(err, client) {
    // Select the database by name
    const testDb = client.db(dbName);
    client.close();
    });
    -

    Hierarchy

    Index

    Constructors

    Hierarchy

    Index

    Constructors

    • Creates a new Db instance

      Parameters

      • client: MongoClient

        The MongoClient for the database.

        @@ -10,92 +10,92 @@

        The name of the database this instance represents.

      • Optional options: DbOptions

        Optional settings for Db construction

        -

      Returns Db

    Properties

    SYSTEM_COMMAND_COLLECTION: string = CONSTANTS.SYSTEM_COMMAND_COLLECTION
    SYSTEM_INDEX_COLLECTION: string = CONSTANTS.SYSTEM_INDEX_COLLECTION
    SYSTEM_JS_COLLECTION: string = CONSTANTS.SYSTEM_JS_COLLECTION
    SYSTEM_NAMESPACE_COLLECTION: string = CONSTANTS.SYSTEM_NAMESPACE_COLLECTION
    SYSTEM_PROFILE_COLLECTION: string = CONSTANTS.SYSTEM_PROFILE_COLLECTION
    SYSTEM_USER_COLLECTION: string = CONSTANTS.SYSTEM_USER_COLLECTION

    Accessors

    • get databaseName(): string
    • get namespace(): string

    Returns Db

    Properties

    SYSTEM_COMMAND_COLLECTION: string = CONSTANTS.SYSTEM_COMMAND_COLLECTION
    SYSTEM_INDEX_COLLECTION: string = CONSTANTS.SYSTEM_INDEX_COLLECTION
    SYSTEM_JS_COLLECTION: string = CONSTANTS.SYSTEM_JS_COLLECTION
    SYSTEM_NAMESPACE_COLLECTION: string = CONSTANTS.SYSTEM_NAMESPACE_COLLECTION
    SYSTEM_PROFILE_COLLECTION: string = CONSTANTS.SYSTEM_PROFILE_COLLECTION
    SYSTEM_USER_COLLECTION: string = CONSTANTS.SYSTEM_USER_COLLECTION

    Accessors

    • get databaseName(): string
    • get namespace(): string
    • The current readPreference of the Db. If not explicitly defined for this Db, will be inherited from the parent MongoClient

      -

      Returns ReadPreference

    • get secondaryOk(): boolean
    • get secondaryOk(): boolean
    • Check if a secondary can be used (because the read preference is not set to primary)

      -

      Returns boolean

    • get slaveOk(): boolean
    • get slaveOk(): boolean
    • slaveOk specified

      deprecated

      Use secondaryOk instead

      -

      Returns boolean

    Methods

    Methods

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    • username: string
    • password: string

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

    • Execute an aggregation framework pipeline against the database, needs MongoDB >= 3.6

      Type parameters

      Parameters

      • pipeline: Document[] = []

        An array of aggregation stages to be executed

      • Optional options: AggregateOptions

        Optional settings for the command

        -

      Returns AggregationCursor<T>

    Returns AggregationCursor<T>

    • Returns a reference to a MongoDB Collection. If it does not exist it will be created implicitly.

      Type parameters

      Parameters

      Returns Collection<TSchema>

      return the new Collection instance

      -

    Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Returns Promise<Collection<TSchema>>

  • Type parameters

    Parameters

    Returns void

  • Type parameters

    Parameters

    Returns void

  • Returns Promise<string>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<string>

  • Parameters

    Returns void

  • Returns Promise<boolean>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<boolean>

  • Parameters

    Returns void

  • Returns Promise<Document>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<Document>

  • Parameters

    Returns void

  • Returns ListCollectionsCursor<Pick<CollectionInfo, "name" | "type">>

  • Parameters

    Returns ListCollectionsCursor<CollectionInfo>

  • Type parameters

    Parameters

    Returns ListCollectionsCursor<T>

    • renameCollection<TSchema>(fromCollection: string, toCollection: string): Promise<Collection<TSchema>>
    • renameCollection<TSchema>(fromCollection: string, toCollection: string, callback: Callback<Collection<TSchema>>): void
    • renameCollection<TSchema>(fromCollection: string, toCollection: string, options: RenameOptions): Promise<Collection<TSchema>>
    • renameCollection<TSchema>(fromCollection: string, toCollection: string, options: RenameOptions, callback: Callback<Collection<TSchema>>): void

    Returns Promise<boolean>

  • Parameters

    • username: string
    • callback: Callback<boolean>

    Returns void

  • Parameters

    Returns Promise<boolean>

  • Parameters

    Returns void

    • renameCollection<TSchema>(fromCollection: string, toCollection: string): Promise<Collection<TSchema>>
    • renameCollection<TSchema>(fromCollection: string, toCollection: string, callback: Callback<Collection<TSchema>>): void
    • renameCollection<TSchema>(fromCollection: string, toCollection: string, options: RenameOptions): Promise<Collection<TSchema>>
    • renameCollection<TSchema>(fromCollection: string, toCollection: string, options: RenameOptions, callback: Callback<Collection<TSchema>>): void

    Returns Promise<Collection<TSchema>>

  • Type parameters

    Parameters

    Returns void

  • Type parameters

    Parameters

    Returns Promise<Collection<TSchema>>

  • Type parameters

    Parameters

    Returns void

  • Returns Promise<ProfilingLevel>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<ProfilingLevel>

  • Parameters

    Returns void

    • unref(): void
    • unref(): void
    • Unref all sockets

      deprecated

      This function is deprecated and will be removed in the next major version.

      -

      Returns void

    • addQueryModifier(name: string, value: string | number | boolean | Document): FindCursor<TSchema>
    • Add a query modifier to the cursor query

      Parameters

      • name: string

        The query modifier (must start with $, such as $orderby etc)

      • value: string | number | boolean | Document

        The modifier value.

        -

      Returns FindCursor<TSchema>

    Returns FindCursor<TSchema>

    • bufferedCount(): number

    Returns FindCursor<TSchema>

    • bufferedCount(): number

    Returns FindCursor<TSchema>

    • Add a comment to the cursor query allowing for tracking the comment in the log.

      Parameters

      • value: string

        The comment attached to this query.

        -

      Returns FindCursor<TSchema>

    Returns FindCursor<TSchema>

    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • forEach(iterator: (doc: TSchema) => boolean | void): Promise<void>
    • forEach(iterator: (doc: TSchema) => boolean | void, callback: Callback<void>): void
    • forEach(iterator: (doc: TSchema) => boolean | void): Promise<void>
    • forEach(iterator: (doc: TSchema) => boolean | void, callback: Callback<void>): void
    • Iterates over all the documents for this cursor using the iterator, callback pattern.

      Parameters

      • iterator: (doc: TSchema) => boolean | void

        The iteration callback.

        -
          • (doc: TSchema): boolean | void
          • Parameters

            • doc: TSchema

            Returns boolean | void

      Returns Promise<void>

    • Parameters

      • iterator: (doc: TSchema) => boolean | void
          • (doc: TSchema): boolean | void
          • Parameters

            • doc: TSchema

            Returns boolean | void

      • callback: Callback<void>

      Returns void

    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void

    Returns Promise<void>

  • Parameters

    • iterator: (doc: TSchema) => boolean | void
        • (doc: TSchema): boolean | void
        • Parameters

          • doc: TSchema

          Returns boolean | void

    • callback: Callback<void>

    Returns void

    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void

    Returns FindCursor<TSchema>

    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • map<T>(transform: (doc: TSchema) => T): FindCursor<T>

    Returns FindCursor<TSchema>

    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • map<T>(transform: (doc: TSchema) => T): FindCursor<T>
    • Map all documents using the provided function If there is a transform set on the cursor, that will be called first and the result passed to this function's transform.

      @@ -70,25 +70,25 @@ it does not return a new instance of a cursor. This means when calling map, you should always assign the result to a new variable in order to get a correctly typed cursor variable. Take note of the following example:

      -

      Type parameters

      • T

      Parameters

      • transform: (doc: TSchema) => T
          • (doc: TSchema): T
          • Parameters

            • doc: TSchema

            Returns T

      Returns FindCursor<T>

    • Set the cursor max

      Parameters

      • max: Document

        Specify a $max value to specify the exclusive upper bound for a specific index in order to constrain the results of find(). The $max specifies the upper bound for all keys of a specific index in order.

        -

      Returns FindCursor<TSchema>

    • maxAwaitTimeMS(value: number): FindCursor<TSchema>

    Returns FindCursor<TSchema>

    • maxAwaitTimeMS(value: number): FindCursor<TSchema>
    • Set a maxAwaitTimeMS on a tailing cursor query to allow to customize the timeout value for the option awaitData (Only supported on MongoDB 3.2 or higher, ignored otherwise)

      Parameters

      • value: number

        Number of milliseconds to wait before aborting the tailed query.

        -

      Returns FindCursor<TSchema>

    Returns FindCursor<TSchema>

    Returns FindCursor<TSchema>

    • Set the cursor min

      Parameters

      • min: Document

        Specify a $min value to specify the inclusive lower bound for a specific index in order to constrain the results of find(). The $min specifies the lower bound for all keys of a specific index in order.

        -

      Returns FindCursor<TSchema>

    • next(): Promise<null | TSchema>
    • next(callback: Callback<null | TSchema>): void
    • next(callback?: Callback<null | TSchema>): void | Promise<null | TSchema>

    Returns FindCursor<TSchema>

    • next(): Promise<null | TSchema>
    • next(callback: Callback<null | TSchema>): void
    • next(callback?: Callback<null | TSchema>): void | Promise<null | TSchema>
    • Add a project stage to the aggregation pipeline

      remarks

      In order to strictly type this function you must provide an interface that represents the effect of your projection on the result documents.

      @@ -103,42 +103,42 @@ Take note of the following example:

      example
      const cursor: FindCursor<{ a: number; b: string }> = coll.find();
      const projectCursor = cursor.project<{ a: number }>({ _id: 0, a: true });
      const aPropOnlyArray: {a: number}[] = await projectCursor.toArray();

      // or always use chaining and save the final cursor

      const cursor = coll.find().project<{ a: string }>({
      _id: 0,
      a: { $convert: { input: '$a', to: 'string' }
      }});
      -

      Type parameters

      Parameters

      Returns FindCursor<T>

    • readBufferedDocuments(number?: number): TSchema[]
    • readBufferedDocuments(number?: number): TSchema[]
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): FindCursor<TSchema>
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): FindCursor<TSchema>
    • Set the cursor returnKey. If set to true, modifies the cursor to only return the index field or fields for the results of the query, rather than documents. If set to true and the query does not use an index to perform the read operation, the returned documents will not contain any fields.

      Parameters

      • value: boolean

        the returnKey value.

        -

      Returns FindCursor<TSchema>

    • rewind(): void

    Returns FindCursor<TSchema>

    • rewind(): void
    • Rewind this cursor to its uninitialized state. Any options that are present on the cursor will remain in effect. Iterating this cursor will cause new queries to be sent to the server, even if the resultant data has already been retrieved by this cursor.

      -

      Returns void

    • Modifies the output of a query by adding a field $recordId to matching documents. $recordId is the internal key which uniquely identifies a document in a collection.

      Parameters

      • value: boolean

        The $showDiskLoc option has now been deprecated and replaced with the showRecordId field. $showDiskLoc will still be accepted for OP_QUERY stye find.

        -

      Returns FindCursor<TSchema>

    Returns FindCursor<TSchema>

    Returns FindCursor<TSchema>

    • toArray(): Promise<TSchema[]>
    • toArray(callback: Callback<TSchema[]>): void

    Returns FindCursor<TSchema>

    • toArray(): Promise<TSchema[]>
    • toArray(callback: Callback<TSchema[]>): void
    • tryNext(): Promise<null | TSchema>
    • tryNext(callback: Callback<null | TSchema>): void
    • tryNext(): Promise<null | TSchema>
    • tryNext(callback: Callback<null | TSchema>): void
    • drop(): Promise<void>
    • drop(callback: Callback<void>): void
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<GridFSBucketEvents[EventKey]>): boolean
    • eventNames(): string[]
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<GridFSBucketEvents[EventKey]>): boolean
    • eventNames(): string[]
    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Returns a readable stream (GridFSBucketReadStream) for streaming the file with the given name from GridFS. If there are multiple files with the same name, this will stream the most recent file with the given name (as determined by the uploadDate field). You can set the revision option to change this behavior.

      -

      Parameters

      Returns GridFSBucketReadStream

    • Returns a writable stream (GridFSBucketWriteStream) for writing buffers to GridFS. The stream's 'id' property contains the resulting file's id.

      @@ -41,17 +41,17 @@

      The value of the 'filename' key in the files doc

    • Optional options: GridFSBucketWriteStreamOptions

      Optional settings.

      -

    Returns GridFSBucketWriteStream

    Returns GridFSBucketWriteStream

    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): GridFSBucket
    • rename(id: ObjectId, filename: string): Promise<void>
    • rename(id: ObjectId, filename: string, callback: Callback<void>): void
    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): GridFSBucket
    • rename(id: ObjectId, filename: string): Promise<void>
    • rename(id: ObjectId, filename: string, callback: Callback<void>): void
    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]

    Returns Promise<void>

  • Parameters

    Returns void

    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]
    • emit(event: "close"): boolean
    • emit(event: "data", chunk: any): boolean
    • emit(event: "end"): boolean
    • emit(event: "error", err: Error): boolean
    • emit(event: "pause"): boolean
    • emit(event: "readable"): boolean
    • emit(event: "resume"): boolean
    • emit(event: string | symbol, ...args: any[]): boolean
    • Parameters

      • event: "close"

      Returns boolean

    • Parameters

      • event: "data"
      • chunk: any

      Returns boolean

    • Parameters

      • event: "end"

      Returns boolean

    • Parameters

      • event: "error"
      • err: Error

      Returns boolean

    • Parameters

      • event: "pause"

      Returns boolean

    • Parameters

      • event: "readable"

      Returns boolean

    • Parameters

      • event: "resume"

      Returns boolean

    • Parameters

      • event: string | symbol
      • Rest ...args: any[]

      Returns boolean

    • Sets the 0-based offset in bytes to start streaming from. Throws an error if this stream has entered flowing mode (e.g. if you've already called on('data'))

      @@ -206,7 +206,7 @@ modified for this specific EventEmitter instance. The value can be set toInfinity (or 0) to indicate an unlimited number of listeners.

      Returns a reference to the EventEmitter, so that calls can be chained.

      since

      v0.3.5

      -

      Parameters

      • n: number

      Returns GridFSBucketReadStream

    • emit(event: "close"): boolean
    • emit(event: "drain"): boolean
    • emit(event: "error", err: Error): boolean
    • emit(event: "finish"): boolean
    • emit(event: "pipe", src: Readable): boolean
    • emit(event: "unpipe", src: Readable): boolean
    • emit(event: string | symbol, ...args: any[]): boolean
    • Parameters

      • event: "close"

      Returns boolean

    • Parameters

      • event: "drain"

      Returns boolean

    • Parameters

      • event: "error"
      • err: Error

      Returns boolean

    • Parameters

      • event: "finish"

      Returns boolean

    • Parameters

      • event: "pipe"
      • src: Readable

      Returns boolean

    • Parameters

      • event: "unpipe"
      • src: Readable

      Returns boolean

    • Parameters

      • event: string | symbol
      • Rest ...args: any[]

      Returns boolean

    • eventNames(): (string | symbol)[]
    • eventNames(): (string | symbol)[]
    • Returns an array listing the events for which the emitter has registered listeners. The values in the array are strings or Symbols.

      const EventEmitter = require('events');
      const myEE = new EventEmitter();
      myEE.on('foo', () => {});
      myEE.on('bar', () => {});

      const sym = Symbol('symbol');
      myEE.on(sym, () => {});

      console.log(myEE.eventNames());
      // Prints: [ 'foo', 'bar', Symbol(symbol) ] @@ -146,12 +146,12 @@

      See also: writable.cork().

      since

      v0.11.2

      -

      Returns void

    • write(chunk: string | Buffer): boolean
    • write(chunk: string | Buffer, callback: Callback<void>): boolean
    • write(chunk: string | Buffer, encoding: undefined | BufferEncoding): boolean
    • write(chunk: string | Buffer, encoding: undefined | BufferEncoding, callback: Callback<void>): boolean
    • write(chunk: string | Buffer): boolean
    • write(chunk: string | Buffer, callback: Callback<void>): boolean
    • write(chunk: string | Buffer, encoding: undefined | BufferEncoding): boolean
    • write(chunk: string | Buffer, encoding: undefined | BufferEncoding, callback: Callback<void>): boolean
    • Write a buffer to the stream.

      Parameters

      • chunk: string | Buffer

        Buffer to write

      Returns boolean

      False if this write required flushing a chunk to MongoDB. True otherwise.

      -
    • Parameters

      • chunk: string | Buffer
      • callback: Callback<void>

      Returns boolean

    • Parameters

      • chunk: string | Buffer
      • encoding: undefined | BufferEncoding

      Returns boolean

    • Parameters

      • chunk: string | Buffer
      • encoding: undefined | BufferEncoding
      • callback: Callback<void>

      Returns boolean

    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]
    • +
    • Parameters

      • chunk: string | Buffer
      • callback: Callback<void>

      Returns boolean

    • Parameters

      • chunk: string | Buffer
      • encoding: undefined | BufferEncoding

      Returns boolean

    • Parameters

      • chunk: string | Buffer
      • encoding: undefined | BufferEncoding
      • callback: Callback<void>

      Returns boolean

    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]
    • bufferedCount(): number

    Returns ListCollectionsCursor<T>

    • bufferedCount(): number
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • forEach(iterator: (doc: T) => boolean | void): Promise<void>
    • forEach(iterator: (doc: T) => boolean | void, callback: Callback<void>): void
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • forEach(iterator: (doc: T) => boolean | void): Promise<void>
    • forEach(iterator: (doc: T) => boolean | void, callback: Callback<void>): void
    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void
    • listenerCount<EventKey>(type: string | symbol | EventKey): number

    Returns Promise<void>

  • Parameters

    • iterator: (doc: T) => boolean | void
        • (doc: T): boolean | void
        • Parameters

          • doc: T

          Returns boolean | void

    • callback: Callback<void>

    Returns void

    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Map all documents using the provided function If there is a transform set on the cursor, that will be called first and the result passed to this function's transform.

      @@ -39,28 +39,28 @@

      Type parameters

      • T = any

      Parameters

      • transform: (doc: T) => T

        The mapping transformation method.

        -
          • (doc: T): T
          • Parameters

            • doc: T

            Returns T

      Returns AbstractCursor<T, AbstractCursorEvents>

    Returns AbstractCursor<T, AbstractCursorEvents>

    • next(): Promise<null | T>
    • next(callback: Callback<null | T>): void
    • next(callback?: Callback<null | T>): void | Promise<null | T>

    Returns ListCollectionsCursor<T>

    • next(): Promise<null | T>
    • next(callback: Callback<null | T>): void
    • next(callback?: Callback<null | T>): void | Promise<null | T>
    • readBufferedDocuments(number?: number): T[]
    • readBufferedDocuments(number?: number): T[]
    • rewind(): void
    • rewind(): void
    • Rewind this cursor to its uninitialized state. Any options that are present on the cursor will remain in effect. Iterating this cursor will cause new queries to be sent to the server, even if the resultant data has already been retrieved by this cursor.

      -

      Returns void

    • toArray(): Promise<T[]>
    • toArray(callback: Callback<T[]>): void
    • toArray(): Promise<T[]>
    • toArray(callback: Callback<T[]>): void
    • tryNext(): Promise<null | T>
    • tryNext(callback: Callback<null | T>): void
    • tryNext(): Promise<null | T>
    • tryNext(callback: Callback<null | T>): void
    • bufferedCount(): number

    Returns ListIndexesCursor

    • bufferedCount(): number
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • forEach(iterator: (doc: any) => boolean | void): Promise<void>
    • forEach(iterator: (doc: any) => boolean | void, callback: Callback<void>): void
    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<AbstractCursorEvents[EventKey]>): boolean
    • eventNames(): string[]
    • forEach(iterator: (doc: any) => boolean | void): Promise<void>
    • forEach(iterator: (doc: any) => boolean | void, callback: Callback<void>): void
    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void
    • listenerCount<EventKey>(type: string | symbol | EventKey): number

    Returns Promise<void>

  • Parameters

    • iterator: (doc: any) => boolean | void
        • (doc: any): boolean | void
        • Parameters

          • doc: any

          Returns boolean | void

    • callback: Callback<void>

    Returns void

    • getMaxListeners(): number
    • hasNext(): Promise<boolean>
    • hasNext(callback: Callback<boolean>): void
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Map all documents using the provided function If there is a transform set on the cursor, that will be called first and the result passed to this function's transform.

      @@ -39,28 +39,28 @@

      Type parameters

      • T = any

      Parameters

      • transform: (doc: any) => T

        The mapping transformation method.

        -
          • (doc: any): T
          • Parameters

            • doc: any

            Returns T

      Returns AbstractCursor<T, AbstractCursorEvents>

    Returns AbstractCursor<T, AbstractCursorEvents>

    • next(): Promise<any>
    • next(callback: Callback<any>): void
    • next(callback?: Callback<any>): void | Promise<any>

    Returns ListIndexesCursor

    • next(): Promise<any>
    • next(callback: Callback<any>): void
    • next(callback?: Callback<any>): void | Promise<any>
    • readBufferedDocuments(number?: number): any[]
    • readBufferedDocuments(number?: number): any[]
    • rewind(): void
    • rewind(): void
    • Rewind this cursor to its uninitialized state. Any options that are present on the cursor will remain in effect. Iterating this cursor will cause new queries to be sent to the server, even if the resultant data has already been retrieved by this cursor.

      -

      Returns void

    • toArray(): Promise<any[]>
    • toArray(callback: Callback<any[]>): void
    • toArray(): Promise<any[]>
    • toArray(callback: Callback<any[]>): void
    • tryNext(): Promise<any>
    • tryNext(callback: Callback<any>): void
    • tryNext(): Promise<any>
    • tryNext(callback: Callback<any>): void
    • error(message: string, object?: unknown): void
    • Log a message at the error level

      Parameters

      • message: string

        The message to log

      • Optional object: unknown

        Additional meta data to log

        -

      Returns void

    • info(message: string, object?: unknown): void

    Returns void

    • info(message: string, object?: unknown): void
    • Log a message at the info level

      Parameters

      • message: string

        The message to log

      • Optional object: unknown

        Additional meta data to log

        -

      Returns void

    • isDebug(): boolean

    Returns void

    • isDebug(): boolean
    • isError(): boolean
    • isError(): boolean
    • isInfo(): boolean
    • isInfo(): boolean
    • isWarn(): boolean
    • isWarn(): boolean
    • warn(message: string, object?: unknown): void
    • warn(message: string, object?: unknown): void
    • Log a message at the warn level

      Parameters

      • message: string

        The message to log

      • Optional object: unknown

        Additional meta data to log

        -

      Returns void

    Returns void

    • filter(type: string, values: string[]): void
    • filter(type: string, values: string[]): void
    • Filter log messages for a particular class

      Parameters

      • type: string

        The type of filter (currently only class)

      • values: string[]

        The filters to apply

        -

      Returns void

    • reset(): void

    Returns void

    • reset(): void
    • Resets the logger to default settings, error and no filtered classes

      -

      Returns void

    Returns void

    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean

    Properties

    code?: string | number

    This is a number in MongoServerError and a string in MongoDriverError

    privateremarks

    Define the type override on the subclasses when we can use the override keyword

    -
    codeName?: string
    errInfo?: Document
    message: string
    ok?: number
    stack?: string
    topologyVersion?: TopologyVersion
    writeConcernError?: Document
    writeErrors: OneOrMore<WriteError> = []
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any
    +
    codeName?: string
    errInfo?: Document
    message: string
    ok?: number
    stack?: string
    topologyVersion?: TopologyVersion
    writeConcernError?: Document
    writeErrors: OneOrMore<WriteError> = []
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    Type declaration

    stackTraceLimit: number

    Accessors

    • get deletedCount(): number
    stackTraceLimit: number

    Accessors

    • get deletedCount(): number
    • get errmsg(): string
    • +

      Returns number

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get insertedCount(): number
    • get errorLabels(): string[]
    • Returns string[]

    • get insertedCount(): number
    • get insertedIds(): {}
    • get insertedIds(): {}
    • Inserted document generated Id's, hash key is the index of the originating operation

      -

      Returns {}

      • [key: number]: any
    • get matchedCount(): number
    • get matchedCount(): number
    • get modifiedCount(): number
    • get modifiedCount(): number
    • get name(): string
    • get upsertedCount(): number
    • get name(): string
    • get upsertedCount(): number
    • get upsertedIds(): {}
    • get upsertedIds(): {}
    • Upserted document generated Id's, hash key is the index of the originating operation

      -

      Returns {}

      • [key: number]: any

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • Checks the error to see if it has an error label

      Parameters

      • label: string

        The error label to check for

        diff --git a/docs/Next/classes/MongoClient.html b/docs/Next/classes/MongoClient.html index 9e03d783ee4..8a728cf33a8 100644 --- a/docs/Next/classes/MongoClient.html +++ b/docs/Next/classes/MongoClient.html @@ -5,7 +5,7 @@
        example
        // Connect using the MongoClient.connect static method
        const MongoClient = require('mongodb').MongoClient;
        const test = require('assert');
        // Connection url
        const url = 'mongodb://localhost:27017';
        // Database Name
        const dbName = 'test';
        // Connect using MongoClient
        MongoClient.connect(url, function(err, client) {
        const db = client.db(dbName);
        client.close();
        });
        -

    Hierarchy

    Index

    Constructors

    Properties

    captureRejectionSymbol: typeof captureRejectionSymbol
    captureRejections: boolean
    +

    Hierarchy

    Index

    Constructors

    Properties

    captureRejectionSymbol: typeof captureRejectionSymbol
    captureRejections: boolean

    Sets or gets the default captureRejection value for all emitters.

    defaultMaxListeners: number
    errorMonitor: typeof errorMonitor

    This symbol shall be used to install a listener for only monitoring 'error' @@ -14,22 +14,22 @@

    Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

    -

    Accessors

    • get serverApi(): Readonly<undefined | ServerApi>

    Methods

    • close(): Promise<void>
    • close(callback: Callback<void>): void
    • close(force: boolean): Promise<void>
    • close(force: boolean, callback: Callback<void>): void

    Accessors

    • get serverApi(): Readonly<undefined | ServerApi>

    Methods

    • close(): Promise<void>
    • close(callback: Callback<void>): void
    • close(force: boolean): Promise<void>
    • close(force: boolean, callback: Callback<void>): void
    • Create a new Db instance sharing the current socket connections.

      Parameters

      • Optional dbName: string

        The name of the database we want to use. If not provided, use database name from connection string.

      • Optional options: DbOptions

        Optional settings for Db construction

        -

      Returns Db

    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<MongoClientEvents[EventKey]>): boolean
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      Returns boolean

    • eventNames(): string[]

    Returns Db

    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<MongoClientEvents[EventKey]>): boolean
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      Returns boolean

    • eventNames(): string[]
    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • type: string | symbol | EventKey

      Returns number

    • listeners<EventKey>(event: string | symbol | EventKey): MongoClientEvents[EventKey][]
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • event: string | symbol | EventKey

      Returns MongoClientEvents[EventKey][]

    • rawListeners<EventKey>(event: string | symbol | EventKey): MongoClientEvents[EventKey][]
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • event: string | symbol | EventKey

      Returns MongoClientEvents[EventKey][]

    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): MongoClient
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • Optional event: string | symbol | EventKey

      Returns MongoClient

    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • type: string | symbol | EventKey

      Returns number

    • listeners<EventKey>(event: string | symbol | EventKey): MongoClientEvents[EventKey][]
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • event: string | symbol | EventKey

      Returns MongoClientEvents[EventKey][]

    • rawListeners<EventKey>(event: string | symbol | EventKey): MongoClientEvents[EventKey][]
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • event: string | symbol | EventKey

      Returns MongoClientEvents[EventKey][]

    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): MongoClient
    • Type parameters

      • EventKey: "close" | "error" | "commandStarted" | "commandSucceeded" | "commandFailed" | "serverHeartbeatStarted" | "serverHeartbeatSucceeded" | "serverHeartbeatFailed" | "connectionPoolCreated" | "connectionPoolClosed" | "connectionPoolCleared" | "connectionCreated" | "connectionReady" | "connectionClosed" | "connectionCheckOutStarted" | "connectionCheckOutFailed" | "connectionCheckedOut" | "connectionCheckedIn" | "serverOpening" | "serverClosed" | "serverDescriptionChanged" | "topologyOpening" | "topologyClosed" | "topologyDescriptionChanged" | "timeout" | "open"

      Parameters

      • Optional event: string | symbol | EventKey

      Returns MongoClient

    • Create a new Change Stream, watching for new changes (insertions, updates, replacements, deletions, and invalidations) in this cluster. Will ignore all changes to system collections, as well as the local, admin, and config databases.

      @@ -37,17 +37,17 @@

      An array of aggregation pipeline stages through which to pass change stream documents. This allows for filtering (using $match) and manipulating the change stream documents.

    • options: ChangeStreamOptions = {}

      Optional settings for the command

      -

    Returns ChangeStream<TSchema>

    Returns ChangeStream<TSchema>

    • Runs a given operation with an implicitly created session. The lifetime of the session will be handled without the need for user interaction.

      NOTE: presently the operation MUST return a Promise (either explicit or implicitly as an async function)

      Parameters

      Returns Promise<void>

    • Parameters

      Returns Promise<void>

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]
    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • validate(): void

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/MongoCursorExhaustedError.html b/docs/Next/classes/MongoCursorExhaustedError.html index 978068e4b54..2a19210fe61 100644 --- a/docs/Next/classes/MongoCursorExhaustedError.html +++ b/docs/Next/classes/MongoCursorExhaustedError.html @@ -1,16 +1,16 @@ MongoCursorExhaustedError | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class MongoCursorExhaustedError

    An error thrown when an attempt is made to read from a cursor that has been exhausted

    -

    Hierarchy

    Index

    Constructors

    Properties

    code?: string | number
    +

    Hierarchy

    Index

    Constructors

    Properties

    code?: string | number

    This is a number in MongoServerError and a string in MongoDriverError

    privateremarks

    Define the type override on the subclasses when we can use the override keyword

    -
    message: string
    stack?: string
    topologyVersion?: TopologyVersion
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any
    +
    message: string
    stack?: string
    topologyVersion?: TopologyVersion
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    Type declaration

    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • +

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean

    Properties

    collection?: string
    db: string

    Methods

    • toString(): string

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/MongoDecompressionError.html b/docs/Next/classes/MongoDecompressionError.html index 83b90631be3..f6be498f5ee 100644 --- a/docs/Next/classes/MongoDecompressionError.html +++ b/docs/Next/classes/MongoDecompressionError.html @@ -1,17 +1,17 @@ MongoDecompressionError | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class MongoDecompressionError

    An error generated when the driver fails to decompress data received from the server.

    -

    Hierarchy

    Index

    Constructors

    Properties

    code?: string | number
    +

    Hierarchy

    Index

    Constructors

    Properties

    code?: string | number

    This is a number in MongoServerError and a string in MongoDriverError

    privateremarks

    Define the type override on the subclasses when we can use the override keyword

    -
    message: string
    stack?: string
    topologyVersion?: TopologyVersion
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any
    +
    message: string
    stack?: string
    topologyVersion?: TopologyVersion
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    Type declaration

    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • +

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    stackTraceLimit: number

    Accessors

    Methods

    Methods

    Hierarchy

    Index

    Constructors

    Properties

    code?: string | number
    +

    Hierarchy

    Index

    Constructors

    Properties

    code?: string | number

    This is a number in MongoServerError and a string in MongoDriverError

    privateremarks

    Define the type override on the subclasses when we can use the override keyword

    -
    message: string
    stack?: string
    topologyVersion?: TopologyVersion
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Type declaration

      • (err: Error, stackTraces: CallSite[]): any
      • +
    message: string
    stack?: string
    topologyVersion?: TopologyVersion
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Type declaration

    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • +

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    stackTraceLimit: number

    Accessors

    • get errmsg(): string
    • Legacy name for server error responses

      -

      Returns string

    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean
    • get errorLabels(): string[]
    • Returns string[]

    • get name(): string

    Methods

    • addErrorLabel(label: string): void
    • hasErrorLabel(label: string): boolean

    Properties

    hedge?: HedgeOptions
    maxStalenessSeconds?: number
    minWireVersion?: number
    tags?: TagSet[]
    NEAREST: "nearest" = ReadPreferenceMode.nearest
    PRIMARY: "primary" = ReadPreferenceMode.primary
    PRIMARY_PREFERRED: "primaryPreferred" = ReadPreferenceMode.primaryPreferred
    SECONDARY: "secondary" = ReadPreferenceMode.secondary
    SECONDARY_PREFERRED: "secondaryPreferred" = ReadPreferenceMode.secondaryPreferred
    nearest: ReadPreference = ...
    primary: ReadPreference = ...
    primaryPreferred: ReadPreference = ...
    secondary: ReadPreference = ...
    secondaryPreferred: ReadPreference = ...

    Accessors

    Methods

    • isValid(mode?: string): boolean

    Returns boolean

    • isValid(mode?: string): boolean
    • Validate if a mode is legal

      Parameters

      • Optional mode: string

        The string representing the read preference mode.

        -

      Returns boolean

    • secondaryOk(): boolean

    Returns boolean

    • secondaryOk(): boolean
    • slaveOk(): boolean
    • slaveOk(): boolean
    • isValid(mode: string): boolean

    Returns undefined | ReadPreference

    • isValid(mode: string): boolean
    • Validate if a mode is legal

      Parameters

      • mode: string

        The string representing the read preference mode.

        -

      Returns boolean

    Returns boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerCapabilities.html b/docs/Next/classes/ServerCapabilities.html index 71d82282a4c..7b131987f96 100644 --- a/docs/Next/classes/ServerCapabilities.html +++ b/docs/Next/classes/ServerCapabilities.html @@ -1 +1 @@ -ServerCapabilities | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerCapabilities

    Hierarchy

    • ServerCapabilities

    Index

    Constructors

    Properties

    maxWireVersion: number
    minWireVersion: number

    Accessors

    • get commandsTakeCollation(): boolean
    • get commandsTakeWriteConcern(): boolean
    • get hasAggregationCursor(): boolean
    • get hasAuthCommands(): boolean
    • get hasListCollectionsCommand(): boolean
    • get hasListIndexesCommand(): boolean
    • get hasTextSearch(): boolean
    • get hasWriteCommands(): boolean
    • get supportsSnapshotReads(): boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ServerCapabilities | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerCapabilities

    Hierarchy

    • ServerCapabilities

    Index

    Constructors

    Properties

    maxWireVersion: number
    minWireVersion: number

    Accessors

    • get commandsTakeCollation(): boolean
    • get commandsTakeWriteConcern(): boolean
    • get hasAggregationCursor(): boolean
    • get hasAuthCommands(): boolean
    • get hasListCollectionsCommand(): boolean
    • get hasListIndexesCommand(): boolean
    • get hasTextSearch(): boolean
    • get hasWriteCommands(): boolean
    • get supportsSnapshotReads(): boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerClosedEvent.html b/docs/Next/classes/ServerClosedEvent.html index fdf8b89885a..b59a76b460b 100644 --- a/docs/Next/classes/ServerClosedEvent.html +++ b/docs/Next/classes/ServerClosedEvent.html @@ -1,7 +1,7 @@ ServerClosedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerClosedEvent

    Emitted when server is closed.

    -

    Hierarchy

    • ServerClosedEvent

    Index

    Properties

    address: string
    +

    Hierarchy

    • ServerClosedEvent

    Index

    Properties

    address: string

    The address (host/port pair) of the server

    -
    topologyId: number
    +
    topologyId: number

    A unique identifier for the topology

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerDescription.html b/docs/Next/classes/ServerDescription.html index 79ddc33d10e..1960e4da927 100644 --- a/docs/Next/classes/ServerDescription.html +++ b/docs/Next/classes/ServerDescription.html @@ -1,13 +1,13 @@ ServerDescription | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerDescription

    The client's view of a single server, based on the most recent hello outcome.

    Internal type, not meant to be directly instantiated

    -

    Hierarchy

    • ServerDescription

    Index

    Properties

    $clusterTime?: ClusterTime
    _hostAddress: HostAddress
    address: string
    arbiters: string[]
    electionId?: ObjectId
    error?: MongoError
    hosts: string[]
    lastUpdateTime: number
    lastWriteDate: number
    logicalSessionTimeoutMinutes?: number
    maxWireVersion: number
    me?: string
    minWireVersion: number
    passives: string[]
    primary?: string
    roundTripTime: number
    setName?: string
    setVersion?: number
    tags: TagSet
    topologyVersion?: TopologyVersion

    Accessors

    • get allHosts(): string[]
    • get host(): string
    • get isDataBearing(): boolean

    Hierarchy

    • ServerDescription

    Index

    Properties

    $clusterTime?: ClusterTime
    _hostAddress: HostAddress
    address: string
    arbiters: string[]
    electionId?: ObjectId
    error?: MongoError
    hosts: string[]
    lastUpdateTime: number
    lastWriteDate: number
    logicalSessionTimeoutMinutes?: number
    maxWireVersion: number
    me?: string
    minWireVersion: number
    passives: string[]
    primary?: string
    roundTripTime: number
    setName?: string
    setVersion?: number
    tags: TagSet
    topologyVersion?: TopologyVersion

    Accessors

    • get allHosts(): string[]
    • get host(): string
    • get isDataBearing(): boolean
    • get isReadable(): boolean
    • get isReadable(): boolean
    • get isWritable(): boolean
    • get isWritable(): boolean
    • get port(): number

    Methods

    • get port(): number

    Methods

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerDescriptionChangedEvent.html b/docs/Next/classes/ServerDescriptionChangedEvent.html index 033a6a116e6..823a8174862 100644 --- a/docs/Next/classes/ServerDescriptionChangedEvent.html +++ b/docs/Next/classes/ServerDescriptionChangedEvent.html @@ -1,11 +1,11 @@ ServerDescriptionChangedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerDescriptionChangedEvent

    Emitted when server description changes, but does NOT include changes to the RTT.

    -

    Hierarchy

    • ServerDescriptionChangedEvent

    Index

    Properties

    address: string
    +

    Hierarchy

    • ServerDescriptionChangedEvent

    Index

    Properties

    address: string

    The address (host/port pair) of the server

    -
    newDescription: ServerDescription
    +
    newDescription: ServerDescription

    The new server description

    -
    previousDescription: ServerDescription
    +
    previousDescription: ServerDescription

    The previous server description

    -
    topologyId: number
    +
    topologyId: number

    A unique identifier for the topology

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerHeartbeatFailedEvent.html b/docs/Next/classes/ServerHeartbeatFailedEvent.html index acb0780a169..58381e34853 100644 --- a/docs/Next/classes/ServerHeartbeatFailedEvent.html +++ b/docs/Next/classes/ServerHeartbeatFailedEvent.html @@ -1,9 +1,9 @@ ServerHeartbeatFailedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerHeartbeatFailedEvent

    Emitted when the server monitor’s hello fails, either with an “ok: 0” or a socket exception.

    -

    Hierarchy

    • ServerHeartbeatFailedEvent

    Index

    Properties

    connectionId: string
    +

    Hierarchy

    • ServerHeartbeatFailedEvent

    Index

    Properties

    connectionId: string

    The connection id for the command

    -
    duration: number
    +
    duration: number

    The execution time of the event in ms

    -
    failure: Error
    +
    failure: Error

    The command failure

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerHeartbeatStartedEvent.html b/docs/Next/classes/ServerHeartbeatStartedEvent.html index 80467104ae8..e92d7f50bf1 100644 --- a/docs/Next/classes/ServerHeartbeatStartedEvent.html +++ b/docs/Next/classes/ServerHeartbeatStartedEvent.html @@ -1,6 +1,6 @@ ServerHeartbeatStartedEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerHeartbeatStartedEvent

    Emitted when the server monitor’s hello command is started - immediately before the hello command is serialized into raw BSON and written to the socket.

    -

    Hierarchy

    • ServerHeartbeatStartedEvent

    Index

    Properties

    Properties

    connectionId: string
    +

    Hierarchy

    • ServerHeartbeatStartedEvent

    Index

    Properties

    Properties

    connectionId: string

    The connection id for the command

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerHeartbeatSucceededEvent.html b/docs/Next/classes/ServerHeartbeatSucceededEvent.html index 1ebd826e5c2..91d1469fcc5 100644 --- a/docs/Next/classes/ServerHeartbeatSucceededEvent.html +++ b/docs/Next/classes/ServerHeartbeatSucceededEvent.html @@ -1,9 +1,9 @@ ServerHeartbeatSucceededEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerHeartbeatSucceededEvent

    Emitted when the server monitor’s hello succeeds.

    -

    Hierarchy

    • ServerHeartbeatSucceededEvent

    Index

    Properties

    connectionId: string
    +

    Hierarchy

    • ServerHeartbeatSucceededEvent

    Index

    Properties

    connectionId: string

    The connection id for the command

    -
    duration: number
    +
    duration: number

    The execution time of the event in ms

    -
    reply: Document
    +
    reply: Document

    The command reply

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerOpeningEvent.html b/docs/Next/classes/ServerOpeningEvent.html index d602dbf5811..c9e9150cbee 100644 --- a/docs/Next/classes/ServerOpeningEvent.html +++ b/docs/Next/classes/ServerOpeningEvent.html @@ -1,7 +1,7 @@ ServerOpeningEvent | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerOpeningEvent

    Emitted when server is initialized.

    -

    Hierarchy

    • ServerOpeningEvent

    Index

    Properties

    address: string
    +

    Hierarchy

    • ServerOpeningEvent

    Index

    Properties

    address: string

    The address (host/port pair) of the server

    -
    topologyId: number
    +
    topologyId: number

    A unique identifier for the topology

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/ServerSession.html b/docs/Next/classes/ServerSession.html index fa06e1a9a01..f9780f34fcb 100644 --- a/docs/Next/classes/ServerSession.html +++ b/docs/Next/classes/ServerSession.html @@ -1,7 +1,7 @@ ServerSession | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class ServerSession

    Reflects the existence of a session on the server. Can be reused by the session pool. WARNING: not meant to be instantiated directly. For internal use only.

    -

    Hierarchy

    • ServerSession

    Index

    Properties

    isDirty: boolean
    lastUse: number
    txnNumber: number

    Methods

    • hasTimedOut(sessionTimeoutMinutes: number): boolean

    Hierarchy

    • ServerSession

    Index

    Properties

    isDirty: boolean
    lastUse: number
    txnNumber: number

    Methods

    • hasTimedOut(sessionTimeoutMinutes: number): boolean

    Methods

    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<Events[EventKey]>): boolean
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • event: symbol | EventKey
      • Rest ...args: Parameters<Events[EventKey]>

      Returns boolean

    • eventNames(): string[]
    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • type: string | symbol | EventKey

      Returns number

    • listeners<EventKey>(event: string | symbol | EventKey): Events[EventKey][]
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • event: string | symbol | EventKey

      Returns Events[EventKey][]

    • rawListeners<EventKey>(event: string | symbol | EventKey): Events[EventKey][]
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • event: string | symbol | EventKey

      Returns Events[EventKey][]

    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): TypedEventEmitter<Events>
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • Optional event: string | symbol | EventKey

      Returns TypedEventEmitter<Events>

    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]
    • +

    Methods

    • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<Events[EventKey]>): boolean
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • event: symbol | EventKey
      • Rest ...args: Parameters<Events[EventKey]>

      Returns boolean

    • eventNames(): string[]
    • getMaxListeners(): number
    • listenerCount<EventKey>(type: string | symbol | EventKey): number
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • type: string | symbol | EventKey

      Returns number

    • listeners<EventKey>(event: string | symbol | EventKey): Events[EventKey][]
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • event: string | symbol | EventKey

      Returns Events[EventKey][]

    • rawListeners<EventKey>(event: string | symbol | EventKey): Events[EventKey][]
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • event: string | symbol | EventKey

      Returns Events[EventKey][]

    • removeAllListeners<EventKey>(event?: string | symbol | EventKey): TypedEventEmitter<Events>
    • Type parameters

      • EventKey: string | number | symbol

      Parameters

      • Optional event: string | symbol | EventKey

      Returns TypedEventEmitter<Events>

    • getEventListeners(emitter: DOMEventTarget | EventEmitter, name: string | symbol): Function[]

    Returns WriteConcern

    Properties

    fsync?: boolean | 1

    equivalent to the j option

    -
    j?: boolean
    +
    j?: boolean

    request acknowledgment that the write operation has been written to the on-disk journal

    -
    w?: W
    +
    w?: W

    request acknowledgment that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.

    -
    wtimeout?: number
    +
    wtimeout?: number

    specify a time limit to prevent write operations from blocking indefinitely

    -

    Methods

    Methods

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/WriteConcernError.html b/docs/Next/classes/WriteConcernError.html index 95fd84a0af0..687f3a05cfd 100644 --- a/docs/Next/classes/WriteConcernError.html +++ b/docs/Next/classes/WriteConcernError.html @@ -1,10 +1,10 @@ WriteConcernError | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class WriteConcernError

    An error representing a failure by the server to apply the requested write concern to the bulk operation.

    -

    Hierarchy

    • WriteConcernError

    Index

    Constructors

    Accessors

    • get code(): undefined | number

    Hierarchy

    • WriteConcernError

    Index

    Constructors

    Accessors

    • get code(): undefined | number
    • get errmsg(): undefined | string
    • get errmsg(): undefined | string

    Methods

    • toString(): string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +

    Returns undefined | string

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/classes/WriteError.html b/docs/Next/classes/WriteError.html index 31ae6482571..e1076e83087 100644 --- a/docs/Next/classes/WriteError.html +++ b/docs/Next/classes/WriteError.html @@ -1,13 +1,13 @@ WriteError | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Class WriteError

    An error that occurred during a BulkWrite on the server.

    -

    Hierarchy

    • WriteError

    Index

    Constructors

    Properties

    Accessors

    • get code(): number

    Hierarchy

    • WriteError

    Index

    Constructors

    Properties

    Accessors

    • get code(): number
    • get errmsg(): undefined | string
    • get errmsg(): undefined | string
    • get index(): number
    • get index(): number

    Methods

    Methods

    • toJSON(): { code: number; errmsg?: string; index: number; op: Document }
    • toString(): string

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Document

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AbstractCursorOptions.html b/docs/Next/interfaces/AbstractCursorOptions.html index 7d6747f6490..43a255e49fb 100644 --- a/docs/Next/interfaces/AbstractCursorOptions.html +++ b/docs/Next/interfaces/AbstractCursorOptions.html @@ -1,21 +1,21 @@ -AbstractCursorOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AbstractCursorOptions

    Hierarchy

    Index

    Properties

    awaitData?: boolean
    batchSize?: number
    bsonRegExp?: boolean
    +AbstractCursorOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AbstractCursorOptions

    Hierarchy

    Index

    Properties

    awaitData?: boolean
    batchSize?: number
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    comment?: string | Document
    enableUtf8Validation?: boolean
    +
    comment?: string | Document
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    noCursorTimeout?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noCursorTimeout?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    readPreference?: ReadPreferenceLike
    serializeFunctions?: boolean
    +
    readConcern?: ReadConcernLike
    readPreference?: ReadPreferenceLike
    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    tailable?: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    session?: ClientSession
    tailable?: boolean

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AddUserOptions.html b/docs/Next/interfaces/AddUserOptions.html index 65a04d93dd3..1c8f34724d7 100644 --- a/docs/Next/interfaces/AddUserOptions.html +++ b/docs/Next/interfaces/AddUserOptions.html @@ -1,43 +1,43 @@ -AddUserOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AddUserOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +AddUserOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AddUserOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    customData?: Document
    +
    customData?: Document

    Custom data associated with the user (only Mongodb 2.6 or higher)

    -
    dbName?: string
    digestPassword?: null
    deprecated

    Please use db.command('createUser', ...) instead for this option

    -
    enableUtf8Validation?: boolean
    +
    dbName?: string
    digestPassword?: null
    deprecated

    Please use db.command('createUser', ...) instead for this option

    +
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    -
    roles?: string | string[] | RoleSpecification | RoleSpecification[]
    +
    roles?: string | string[] | RoleSpecification | RoleSpecification[]

    Roles associated with the created user

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AggregateOptions.html b/docs/Next/interfaces/AggregateOptions.html index 90d409cf169..a60727e586e 100644 --- a/docs/Next/interfaces/AggregateOptions.html +++ b/docs/Next/interfaces/AggregateOptions.html @@ -1,54 +1,54 @@ -AggregateOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AggregateOptions

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean
    +AggregateOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AggregateOptions

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean

    allowDiskUse lets the server know if it can use disk to store temporary results for the aggregation (requires mongodb 2.6 >).

    -
    authdb?: string
    batchSize?: number
    +
    authdb?: string
    batchSize?: number

    The number of documents to return per batch. See aggregation documentation.

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    Allow driver to bypass schema validation in MongoDB 3.2 or higher.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specify collation.

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    cursor?: Document
    +
    cursor?: Document

    Return the query as cursor, on 2.6 > it returns as a real cursor on pre 2.6 it returns as an emulated cursor.

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: Hint
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: Hint

    Add an index selection hint to an aggregation command

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    let?: Document
    +
    let?: Document

    Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0).

    -
    maxAwaitTimeMS?: number
    +
    maxAwaitTimeMS?: number

    The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.

    -
    maxTimeMS?: number
    +
    maxTimeMS?: number

    specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AggregationCursorOptions.html b/docs/Next/interfaces/AggregationCursorOptions.html index ce9f6f495f5..085b5b9fde5 100644 --- a/docs/Next/interfaces/AggregationCursorOptions.html +++ b/docs/Next/interfaces/AggregationCursorOptions.html @@ -1,54 +1,54 @@ -AggregationCursorOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AggregationCursorOptions

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean
    +AggregationCursorOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AggregationCursorOptions

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean

    allowDiskUse lets the server know if it can use disk to store temporary results for the aggregation (requires mongodb 2.6 >).

    -
    authdb?: string
    awaitData?: boolean
    batchSize?: number
    +
    authdb?: string
    awaitData?: boolean
    batchSize?: number

    The number of documents to return per batch. See aggregation documentation.

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    Allow driver to bypass schema validation in MongoDB 3.2 or higher.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specify collation.

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    cursor?: Document
    +
    cursor?: Document

    Return the query as cursor, on 2.6 > it returns as a real cursor on pre 2.6 it returns as an emulated cursor.

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: Hint
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: Hint

    Add an index selection hint to an aggregation command

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    let?: Document
    +
    let?: Document

    Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0).

    -
    maxAwaitTimeMS?: number
    +
    maxAwaitTimeMS?: number

    The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.

    -
    maxTimeMS?: number
    +
    maxTimeMS?: number

    specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.

    -
    noCursorTimeout?: boolean
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean
    +
    noCursorTimeout?: boolean
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    tailable?: boolean
    willRetryWrites?: boolean
    +
    tailable?: boolean
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/Auth.html b/docs/Next/interfaces/Auth.html index 84a5f44e4a3..e8a88241bd3 100644 --- a/docs/Next/interfaces/Auth.html +++ b/docs/Next/interfaces/Auth.html @@ -1,5 +1,5 @@ -Auth | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface Auth

    Hierarchy

    • Auth

    Index

    Properties

    password?: string
    +Auth | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface Auth

    Hierarchy

    • Auth

    Index

    Properties

    password?: string

    The password for auth

    -
    username?: string
    +
    username?: string

    The username for auth

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AuthMechanismProperties.html b/docs/Next/interfaces/AuthMechanismProperties.html index 6869453f94f..aa0abd0e965 100644 --- a/docs/Next/interfaces/AuthMechanismProperties.html +++ b/docs/Next/interfaces/AuthMechanismProperties.html @@ -1 +1 @@ -AuthMechanismProperties | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AuthMechanismProperties

    Hierarchy

    Index

    Properties

    AWS_SESSION_TOKEN?: string
    CANONICALIZE_HOST_NAME?: GSSAPICanonicalizationValue
    SERVICE_HOST?: string
    SERVICE_NAME?: string
    SERVICE_REALM?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +AuthMechanismProperties | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AuthMechanismProperties

    Hierarchy

    Index

    Properties

    AWS_SESSION_TOKEN?: string
    CANONICALIZE_HOST_NAME?: GSSAPICanonicalizationValue
    SERVICE_HOST?: string
    SERVICE_NAME?: string
    SERVICE_REALM?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AutoEncrypter.html b/docs/Next/interfaces/AutoEncrypter.html index 4db0e4e1aa2..b22dcb3283b 100644 --- a/docs/Next/interfaces/AutoEncrypter.html +++ b/docs/Next/interfaces/AutoEncrypter.html @@ -1 +1 @@ -AutoEncrypter | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AutoEncrypter

    Hierarchy

    • AutoEncrypter

    Index

    Constructors

    Methods

    • teardown(force: boolean, callback: Callback<any>): void

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +AutoEncrypter | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AutoEncrypter

    Hierarchy

    • AutoEncrypter

    Index

    Constructors

    Methods

    • teardown(force: boolean, callback: Callback<any>): void

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AutoEncryptionOptions.html b/docs/Next/interfaces/AutoEncryptionOptions.html index bbe77feed8b..4e3f2f54812 100644 --- a/docs/Next/interfaces/AutoEncryptionOptions.html +++ b/docs/Next/interfaces/AutoEncryptionOptions.html @@ -1,6 +1,6 @@ -AutoEncryptionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AutoEncryptionOptions

    Hierarchy

    • AutoEncryptionOptions

    Index

    Properties

    bypassAutoEncryption?: boolean
    +AutoEncryptionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AutoEncryptionOptions

    Hierarchy

    • AutoEncryptionOptions

    Index

    Properties

    bypassAutoEncryption?: boolean

    Allows the user to bypass auto encryption, maintaining implicit decryption

    -
    extraOptions?: { mongocryptdBypassSpawn?: boolean; mongocryptdSpawnArgs?: string[]; mongocryptdSpawnPath?: string; mongocryptdURI?: string }

    Type declaration

    • Optional mongocryptdBypassSpawn?: boolean
      +
    extraOptions?: { mongocryptdBypassSpawn?: boolean; mongocryptdSpawnArgs?: string[]; mongocryptdSpawnPath?: string; mongocryptdURI?: string }

    Type declaration

    • Optional mongocryptdBypassSpawn?: boolean

      If true, autoEncryption will not attempt to spawn a mongocryptd before connecting

    • Optional mongocryptdSpawnArgs?: string[]

      Command line arguments to use when auto-spawning a mongocryptd

      @@ -9,11 +9,11 @@
    • Optional mongocryptdURI?: string

      A local process the driver communicates with to determine how to encrypt values in a command. Defaults to "mongodb://%2Fvar%2Fmongocryptd.sock" if domain sockets are available or "mongodb://localhost:27020" otherwise

      -
    keyVaultClient?: MongoClient
    +
    keyVaultClient?: MongoClient

    A MongoClient used to fetch keys from a key vault

    -
    keyVaultNamespace?: string
    +
    keyVaultNamespace?: string

    The namespace where keys are stored in the key vault

    -
    kmsProviders?: { aws?: { accessKeyId: string; secretAccessKey: string; sessionToken?: string }; azure?: { clientId: string; clientSecret: string; identityPlatformEndpoint?: string; tenantId: string }; gcp?: { email: string; endpoint?: string; privateKey: string | Buffer }; kmip?: { endpoint?: string }; local?: { key: string | Buffer } }
    +
    kmsProviders?: { aws?: { accessKeyId: string; secretAccessKey: string; sessionToken?: string }; azure?: { clientId: string; clientSecret: string; identityPlatformEndpoint?: string; tenantId: string }; gcp?: { email: string; endpoint?: string; privateKey: string | Buffer }; kmip?: { endpoint?: string }; local?: { key: string | Buffer } }

    Configuration options that are used by specific KMS providers during key generation, encryption, and decryption.

    Type declaration

    • Optional aws?: { accessKeyId: string; secretAccessKey: string; sessionToken?: string }

      Configuration options for using 'aws' as your KMS provider

      @@ -57,14 +57,14 @@
      • key: string | Buffer

        The master key used to encrypt/decrypt data keys. A 96-byte long Buffer or base64 encoded string.

        -
    options?: { logger?: any }

    Type declaration

    options?: { logger?: any }

    Type declaration

    proxyOptions?: ProxyOptions
    schemaMap?: Document
    +

    Parameters

    Returns void

    proxyOptions?: ProxyOptions
    schemaMap?: Document

    A map of namespaces to a local JSON schema for encryption

    NOTE: Supplying options.schemaMap provides more security than relying on JSON Schemas obtained from the server. It protects against a malicious server advertising a false JSON Schema, which could trick the client into sending decrypted data that should be encrypted. Schemas supplied in the schemaMap only apply to configuring automatic encryption for client side encryption. Other validation rules in the JSON schema will not be enforced by the driver and will result in an error.

    -
    +

    The TLS options to use connecting to the KMS provider

    Type declaration

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/AutoEncryptionTlsOptions.html b/docs/Next/interfaces/AutoEncryptionTlsOptions.html index ef0e2fef182..b87d7293ce0 100644 --- a/docs/Next/interfaces/AutoEncryptionTlsOptions.html +++ b/docs/Next/interfaces/AutoEncryptionTlsOptions.html @@ -1,13 +1,13 @@ -AutoEncryptionTlsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AutoEncryptionTlsOptions

    Hierarchy

    • AutoEncryptionTlsOptions

    Index

    Properties

    tlsCAFile?: string
    +AutoEncryptionTlsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface AutoEncryptionTlsOptions

    Hierarchy

    • AutoEncryptionTlsOptions

    Index

    Properties

    tlsCAFile?: string

    Specifies the location of a local .pem file that contains the root certificate chain from the Certificate Authority. This file is used to validate the certificate presented by the KMS provider.

    -
    tlsCertificateKeyFile?: string
    +
    tlsCertificateKeyFile?: string

    Specifies the location of a local .pem file that contains either the client's TLS/SSL certificate and key or only the client's TLS/SSL key when tlsCertificateFile is used to provide the certificate.

    -
    tlsCertificateKeyFilePassword?: string
    +
    tlsCertificateKeyFilePassword?: string

    Specifies the password to de-crypt the tlsCertificateKeyFile.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/BSONSerializeOptions.html b/docs/Next/interfaces/BSONSerializeOptions.html index 5ea21defeda..66d8e440fd1 100644 --- a/docs/Next/interfaces/BSONSerializeOptions.html +++ b/docs/Next/interfaces/BSONSerializeOptions.html @@ -4,7 +4,7 @@

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    enableUtf8Validation?: boolean
    +
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    @@ -16,7 +16,7 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    diff --git a/docs/Next/interfaces/BulkResult.html b/docs/Next/interfaces/BulkResult.html index b92a9ec495f..306e735ed0a 100644 --- a/docs/Next/interfaces/BulkResult.html +++ b/docs/Next/interfaces/BulkResult.html @@ -1 +1 @@ -BulkResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface BulkResult

    Hierarchy

    • BulkResult

    Index

    Properties

    insertedIds: Document[]
    nInserted: number
    nMatched: number
    nModified: number
    nRemoved: number
    nUpserted: number
    ok: number
    opTime?: Document
    upserted: Document[]
    writeConcernErrors: WriteConcernError[]
    writeErrors: WriteError[]

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +BulkResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface BulkResult

    Hierarchy

    • BulkResult

    Index

    Properties

    insertedIds: Document[]
    nInserted: number
    nMatched: number
    nModified: number
    nRemoved: number
    nUpserted: number
    ok: number
    opTime?: Document
    upserted: Document[]
    writeConcernErrors: WriteConcernError[]
    writeErrors: WriteError[]

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/BulkWriteOperationError.html b/docs/Next/interfaces/BulkWriteOperationError.html index 24e5fd64ab8..d852f37fc36 100644 --- a/docs/Next/interfaces/BulkWriteOperationError.html +++ b/docs/Next/interfaces/BulkWriteOperationError.html @@ -1 +1 @@ -BulkWriteOperationError | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface BulkWriteOperationError

    Hierarchy

    • BulkWriteOperationError

    Index

    Properties

    code: number
    errInfo: Document
    errmsg: string
    index: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +BulkWriteOperationError | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface BulkWriteOperationError

    Hierarchy

    • BulkWriteOperationError

    Index

    Properties

    code: number
    errInfo: Document
    errmsg: string
    index: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/BulkWriteOptions.html b/docs/Next/interfaces/BulkWriteOptions.html index 5446b010932..264da340e93 100644 --- a/docs/Next/interfaces/BulkWriteOptions.html +++ b/docs/Next/interfaces/BulkWriteOptions.html @@ -1,26 +1,26 @@ -BulkWriteOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface BulkWriteOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +BulkWriteOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface BulkWriteOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    Allow driver to bypass schema validation in MongoDB 3.2 or higher.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    forceServerObjectId?: boolean
    +
    forceServerObjectId?: boolean

    Force server to assign _id values instead of driver.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    keepGoing?: boolean
    deprecated

    use ordered instead

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    ordered?: boolean
    +
    keepGoing?: boolean
    deprecated

    use ordered instead

    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    ordered?: boolean

    If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails.

    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    @@ -28,18 +28,18 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ChangeStreamDocument.html b/docs/Next/interfaces/ChangeStreamDocument.html index a53f5c4dbb4..de8136417d4 100644 --- a/docs/Next/interfaces/ChangeStreamDocument.html +++ b/docs/Next/interfaces/ChangeStreamDocument.html @@ -1,14 +1,14 @@ -ChangeStreamDocument | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ChangeStreamDocument<TSchema>

    Type parameters

    Hierarchy

    • ChangeStreamDocument

    Index

    Properties

    _id: InferIdType<TSchema>
    +ChangeStreamDocument | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ChangeStreamDocument<TSchema>

    Type parameters

    Hierarchy

    • ChangeStreamDocument

    Index

    Properties

    _id: InferIdType<TSchema>

    The id functions as an opaque token for use when resuming an interrupted change stream.

    -
    documentKey?: { _id: InferIdType<TSchema> }
    +
    documentKey?: { _id: InferIdType<TSchema> }

    Only present for ops of type ‘insert’, ‘update’, ‘replace’, and ‘delete’.

    For unsharded collections this contains a single field, _id, with the value of the _id of the document updated. For sharded collections, this will contain all the components of the shard key in order, followed by the _id if the _id isn’t part of the shard key.

    -

    Type declaration

    fullDocument?: TSchema
    +

    Type declaration

    fullDocument?: TSchema

    Always present for operations of type ‘insert’ and ‘replace’. Also present for operations of type ‘update’ if the user has specified ‘updateLookup’ in the ‘fullDocument’ arguments to the ‘$changeStream’ stage.

    @@ -18,12 +18,12 @@

    For operations of type ‘update’, this key will contain a copy of the full version of the document from some point after the update occurred. If the document was deleted since the updated happened, it will be null.

    -
    ns: { coll: string; db: string }
    +
    ns: { coll: string; db: string }

    Contains two fields: “db” and “coll” containing the database and collection name in which the change happened.

    -

    Type declaration

    • coll: string
    • db: string
    operationType: "replace" | "insert" | "update" | "delete" | "invalidate" | "drop" | "dropDatabase" | "rename"
    +

    Type declaration

    • coll: string
    • db: string
    operationType: "replace" | "insert" | "update" | "delete" | "invalidate" | "drop" | "dropDatabase" | "rename"

    Describes the type of operation represented in this change notification.

    -
    updateDescription?: UpdateDescription<TSchema>
    +
    updateDescription?: UpdateDescription<TSchema>

    Only present for ops of type ‘update’.

    Contains a description of updated and removed fields in this operation.

    diff --git a/docs/Next/interfaces/ChangeStreamOptions.html b/docs/Next/interfaces/ChangeStreamOptions.html index 3bac24210f8..5937ea2e0f9 100644 --- a/docs/Next/interfaces/ChangeStreamOptions.html +++ b/docs/Next/interfaces/ChangeStreamOptions.html @@ -1,64 +1,64 @@ ChangeStreamOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ChangeStreamOptions

    Options that can be passed to a ChangeStream. Note that startAfter, resumeAfter, and startAtOperationTime are all mutually exclusive, and the server will error if more than one is specified.

    -

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean
    +

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean

    allowDiskUse lets the server know if it can use disk to store temporary results for the aggregation (requires mongodb 2.6 >).

    -
    authdb?: string
    batchSize?: number
    +
    authdb?: string
    batchSize?: number

    The number of documents to return per batch. See aggregation documentation.

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    Allow driver to bypass schema validation in MongoDB 3.2 or higher.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specify collation.

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    cursor?: Document
    +
    cursor?: Document

    Return the query as cursor, on 2.6 > it returns as a real cursor on pre 2.6 it returns as an emulated cursor.

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullDocument?: string
    +
    fullDocument?: string

    Allowed values: ‘default’, ‘updateLookup’. When set to ‘updateLookup’, the change stream will include both a delta describing the changes to the document, as well as a copy of the entire document that was changed from some time after the change occurred.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: Hint
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: Hint

    Add an index selection hint to an aggregation command

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    let?: Document
    +
    let?: Document

    Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0).

    -
    maxAwaitTimeMS?: number
    +
    maxAwaitTimeMS?: number

    The maximum amount of time for the server to wait on new documents to satisfy a change stream query.

    -
    maxTimeMS?: number
    +
    maxTimeMS?: number

    specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    resumeAfter?: unknown
    +
    resumeAfter?: unknown

    Allows you to start a changeStream after a specified event. See ChangeStream documentation.

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    startAfter?: unknown
    +
    startAfter?: unknown

    Similar to resumeAfter, but will allow you to start after an invalidated event. See ChangeStream documentation.

    -
    startAtOperationTime?: Timestamp
    +
    startAtOperationTime?: Timestamp

    Will start the changeStream after the specified operationTime.

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ClientMetadata.html b/docs/Next/interfaces/ClientMetadata.html index b0628df1379..fa12e8e8699 100644 --- a/docs/Next/interfaces/ClientMetadata.html +++ b/docs/Next/interfaces/ClientMetadata.html @@ -1 +1 @@ -ClientMetadata | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClientMetadata

    Hierarchy

    • ClientMetadata

    Index

    Properties

    application?: { name: string }

    Type declaration

    • name: string
    driver: { name: string; version: string }

    Type declaration

    • name: string
    • version: string
    os: { architecture: string; name: Platform; type: string; version: string }

    Type declaration

    • architecture: string
    • name: Platform
    • type: string
    • version: string
    platform: string
    version?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ClientMetadata | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClientMetadata

    Hierarchy

    • ClientMetadata

    Index

    Properties

    application?: { name: string }

    Type declaration

    • name: string
    driver: { name: string; version: string }

    Type declaration

    • name: string
    • version: string
    os: { architecture: string; name: Platform; type: string; version: string }

    Type declaration

    • architecture: string
    • name: Platform
    • type: string
    • version: string
    platform: string
    version?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ClientMetadataOptions.html b/docs/Next/interfaces/ClientMetadataOptions.html index 864961821cc..6885c904e7c 100644 --- a/docs/Next/interfaces/ClientMetadataOptions.html +++ b/docs/Next/interfaces/ClientMetadataOptions.html @@ -1 +1 @@ -ClientMetadataOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClientMetadataOptions

    Hierarchy

    • ClientMetadataOptions

    Index

    Properties

    appName?: string
    driverInfo?: { name?: string; platform?: string; version?: string }

    Type declaration

    • Optional name?: string
    • Optional platform?: string
    • Optional version?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ClientMetadataOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClientMetadataOptions

    Hierarchy

    • ClientMetadataOptions

    Index

    Properties

    appName?: string
    driverInfo?: { name?: string; platform?: string; version?: string }

    Type declaration

    • Optional name?: string
    • Optional platform?: string
    • Optional version?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ClientSessionOptions.html b/docs/Next/interfaces/ClientSessionOptions.html index 943eb8ce7ee..ad058f9a0b4 100644 --- a/docs/Next/interfaces/ClientSessionOptions.html +++ b/docs/Next/interfaces/ClientSessionOptions.html @@ -1,7 +1,7 @@ -ClientSessionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClientSessionOptions

    Hierarchy

    • ClientSessionOptions

    Index

    Properties

    causalConsistency?: boolean
    +ClientSessionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClientSessionOptions

    Hierarchy

    • ClientSessionOptions

    Index

    Properties

    causalConsistency?: boolean

    Whether causal consistency should be enabled on this session

    -
    defaultTransactionOptions?: TransactionOptions
    +
    defaultTransactionOptions?: TransactionOptions

    The default TransactionOptions to use for transactions started on this session.

    -
    snapshot?: boolean
    +
    snapshot?: boolean

    Whether all read operations should be read from the same snapshot for this session (NOTE: not compatible with causalConsistency=true)

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CloseOptions.html b/docs/Next/interfaces/CloseOptions.html index d5c933b9b3c..80377042b4a 100644 --- a/docs/Next/interfaces/CloseOptions.html +++ b/docs/Next/interfaces/CloseOptions.html @@ -1 +1 @@ -CloseOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CloseOptions

    Hierarchy

    • CloseOptions

    Index

    Properties

    Properties

    force?: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +CloseOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CloseOptions

    Hierarchy

    • CloseOptions

    Index

    Properties

    Properties

    force?: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ClusterTime.html b/docs/Next/interfaces/ClusterTime.html index 13e52e2ec7d..68f10678f32 100644 --- a/docs/Next/interfaces/ClusterTime.html +++ b/docs/Next/interfaces/ClusterTime.html @@ -1 +1 @@ -ClusterTime | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClusterTime

    Hierarchy

    • ClusterTime

    Index

    Properties

    clusterTime: Timestamp
    signature: { hash: Binary; keyId: Long }

    Type declaration

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ClusterTime | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ClusterTime

    Hierarchy

    • ClusterTime

    Index

    Properties

    clusterTime: Timestamp
    signature: { hash: Binary; keyId: Long }

    Type declaration

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CollStats.html b/docs/Next/interfaces/CollStats.html index 5b05324fd6c..f6232fd6f96 100644 --- a/docs/Next/interfaces/CollStats.html +++ b/docs/Next/interfaces/CollStats.html @@ -1,44 +1,44 @@ CollStats | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CollStats

    Hierarchy

    Index

    Properties

    avgObjSize: number
    +

    Hierarchy

    Index

    Properties

    avgObjSize: number

    Average object size in bytes

    -
    capped: boolean
    +
    capped: boolean

    true if the collection is capped

    -
    count: number
    +
    count: number

    Number of documents

    -
    freeStorageSize?: number
    +
    freeStorageSize?: number

    The amount of storage available for reuse. The scale argument affects this value.

    -
    indexBuilds?: number
    +
    indexBuilds?: number

    An array that contains the names of the indexes that are currently being built on the collection

    -
    indexDetails?: any
    +
    indexDetails?: any

    The fields in this document are the names of the indexes, while the values themselves are documents that contain statistics for the index provided by the storage engine

    -
    indexSizes: { _id_: number }
    +
    indexSizes: { _id_: number }

    Size of specific indexes in bytes

    -

    Type declaration

    • [index: string]: number
    • _id_: number
    lastExtentSize: number
    +

    Type declaration

    • [index: string]: number
    • _id_: number
    lastExtentSize: number

    Size of the most recently created extent in bytes

    -
    max: number
    +
    max: number

    The maximum number of documents that may be present in a capped collection

    -
    maxSize: number
    +
    maxSize: number

    The maximum size of a capped collection

    -
    nindexes: number
    +
    nindexes: number

    Number of indexes

    -
    ns: string
    +
    ns: string

    Namespace

    -
    numExtents: number
    +
    numExtents: number

    Number of extents (contiguously allocated chunks of datafile space)

    -
    ok: number
    paddingFactor: number
    +
    ok: number
    paddingFactor: number

    Padding can speed up updates if documents grow

    -
    scaleFactor: number
    +
    scaleFactor: number

    The scale value used by the command.

    -
    size: number
    +
    size: number

    Collection size in bytes

    -
    storageSize: number
    +
    storageSize: number

    (Pre)allocated space for the collection in bytes

    -
    totalIndexSize: number
    +
    totalIndexSize: number

    Total index size in bytes

    -
    totalSize: number
    +
    totalSize: number

    The sum of the storageSize and totalIndexSize. The scale argument affects this value

    -
    userFlags?: number
    +
    userFlags?: number

    A number that indicates the user-set flags on the collection. userFlags only appears when using the mmapv1 storage engine

    -
    wiredTiger?: WiredTigerData
    +
    wiredTiger?: WiredTigerData

    This document contains data reported directly by the WiredTiger engine and other data for internal diagnostic use

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CollStatsOptions.html b/docs/Next/interfaces/CollStatsOptions.html index e2ed430514b..a54ae1b509a 100644 --- a/docs/Next/interfaces/CollStatsOptions.html +++ b/docs/Next/interfaces/CollStatsOptions.html @@ -1,40 +1,40 @@ -CollStatsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CollStatsOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +CollStatsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CollStatsOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    -
    scale?: number
    +
    scale?: number

    Divide the returned sizes by scale value.

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CollationOptions.html b/docs/Next/interfaces/CollationOptions.html index 166c073c06f..f5cd1a8fd4b 100644 --- a/docs/Next/interfaces/CollationOptions.html +++ b/docs/Next/interfaces/CollationOptions.html @@ -1 +1 @@ -CollationOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CollationOptions

    Hierarchy

    • CollationOptions

    Index

    Properties

    alternate?: string
    backwards?: boolean
    caseFirst?: string
    caseLevel?: boolean
    locale: string
    maxVariable?: string
    normalization?: boolean
    numericOrdering?: boolean
    strength?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +CollationOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CollationOptions

    Hierarchy

    • CollationOptions

    Index

    Properties

    alternate?: string
    backwards?: boolean
    caseFirst?: string
    caseLevel?: boolean
    locale: string
    maxVariable?: string
    normalization?: boolean
    numericOrdering?: boolean
    strength?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CollectionInfo.html b/docs/Next/interfaces/CollectionInfo.html index 9c7de6d61a6..dabc3162df2 100644 --- a/docs/Next/interfaces/CollectionInfo.html +++ b/docs/Next/interfaces/CollectionInfo.html @@ -1 +1 @@ -CollectionInfo | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CollectionInfo

    Hierarchy

    Index

    Properties

    idIndex?: Document
    info?: { readOnly?: false; uuid?: Binary }

    Type declaration

    • Optional readOnly?: false
    • Optional uuid?: Binary
    name: string
    options?: Document
    type?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +CollectionInfo | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CollectionInfo

    Hierarchy

    Index

    Properties

    idIndex?: Document
    info?: { readOnly?: false; uuid?: Binary }

    Type declaration

    • Optional readOnly?: false
    • Optional uuid?: Binary
    name: string
    options?: Document
    type?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CollectionOptions.html b/docs/Next/interfaces/CollectionOptions.html index 8d01eb7e0f9..25cacc8d5b1 100644 --- a/docs/Next/interfaces/CollectionOptions.html +++ b/docs/Next/interfaces/CollectionOptions.html @@ -2,27 +2,27 @@

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    enableUtf8Validation?: boolean
    +
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    loggerLevel?: LoggerLevel
    promoteBuffers?: boolean
    +
    loggerLevel?: LoggerLevel
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    slaveOk?: boolean
    deprecated

    Use readPreference instead

    -
    +
    slaveOk?: boolean
    deprecated

    Use readPreference instead

    +

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CommandOperationOptions.html b/docs/Next/interfaces/CommandOperationOptions.html index 32db745a811..6ae9e8ff606 100644 --- a/docs/Next/interfaces/CommandOperationOptions.html +++ b/docs/Next/interfaces/CommandOperationOptions.html @@ -1,38 +1,38 @@ -CommandOperationOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CommandOperationOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +CommandOperationOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CommandOperationOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ConnectOptions.html b/docs/Next/interfaces/ConnectOptions.html index f37802af145..3e13715c7d5 100644 --- a/docs/Next/interfaces/ConnectOptions.html +++ b/docs/Next/interfaces/ConnectOptions.html @@ -1 +1 @@ -ConnectOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ConnectOptions

    Hierarchy

    • ConnectOptions

    Index

    Properties

    Properties

    readPreference?: ReadPreference

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ConnectOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ConnectOptions

    Hierarchy

    • ConnectOptions

    Index

    Properties

    Properties

    readPreference?: ReadPreference

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ConnectionOptions.html b/docs/Next/interfaces/ConnectionOptions.html index 24259d8db11..3f4e5ca64f2 100644 --- a/docs/Next/interfaces/ConnectionOptions.html +++ b/docs/Next/interfaces/ConnectionOptions.html @@ -1,11 +1,11 @@ ConnectionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ConnectionOptions

    Hierarchy

    Index

    Properties

    ALPNProtocols?: Uint8Array | string[] | Uint8Array[]

    An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

    -
    autoEncrypter?: AutoEncrypter
    ca?: string | Buffer | (string | Buffer)[]
    +
    autoEncrypter?: AutoEncrypter
    ca?: string | Buffer | (string | Buffer)[]

    Optionally override the trusted CA certificates. Default is to trust the well-known CAs curated by Mozilla. Mozilla's CAs are completely replaced when CAs are explicitly specified using this option.

    -
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]
    +
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]

    Cert chains in PEM format. One cert chain should be provided per private key. Each cert chain should consist of the PEM formatted certificate for a provided private key, followed by the PEM @@ -35,7 +35,7 @@ information, see modifying the default cipher suite. Permitted ciphers can be obtained via tls.getCiphers(). Cipher names must be uppercased in order for OpenSSL to accept them.

    -
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS?: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]
    +
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS?: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]

    PEM formatted CRLs (Certificate Revocation Lists).

    ecdhCurve?: string

    A string describing a named curve or a colon separated list of curve @@ -45,7 +45,7 @@ recent releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve. Default: tls.DEFAULT_ECDH_CURVE.

    -
    family?: number
    generation: number
    hints?: number
    hostAddress: HostAddress
    id: number | "<monitor>"
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]
    +
    family?: number
    generation: number
    hints?: number
    hostAddress: HostAddress
    id: number | "<monitor>"
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]

    Private keys in PEM format. PEM allows the option of private keys being encrypted. Encrypted keys will be decrypted with options.passphrase. Multiple keys using different algorithms can be @@ -54,7 +54,7 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    metadata: ClientMetadata
    minDHSize?: number
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string
    +
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    metadata: ClientMetadata
    minDHSize?: number
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string

    Shared passphrase used for a single private key and/or a PFX.

    pfx?: string | Buffer | (string | Buffer | PxfObject)[]

    PFX or PKCS12 encoded private key and certificate chain. pfx is an @@ -65,7 +65,7 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted PFX will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    rejectUnauthorized?: boolean
    +
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    rejectUnauthorized?: boolean

    If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

    @@ -82,4 +82,4 @@ any TLS protocol version up to TLSv1.3. It is not recommended to use TLS versions less than 1.2, but it may be required for interoperability. Default: none, see minVersion.

    -
    serverApi?: ServerApi
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    tls: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    serverApi?: ServerApi
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    tls: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ConnectionPoolOptions.html b/docs/Next/interfaces/ConnectionPoolOptions.html index adf4db05f0e..f60662f3cb8 100644 --- a/docs/Next/interfaces/ConnectionPoolOptions.html +++ b/docs/Next/interfaces/ConnectionPoolOptions.html @@ -1,11 +1,11 @@ ConnectionPoolOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ConnectionPoolOptions

    Hierarchy

    Index

    Properties

    ALPNProtocols?: Uint8Array | string[] | Uint8Array[]

    An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

    -
    autoEncrypter?: AutoEncrypter
    ca?: string | Buffer | (string | Buffer)[]
    +
    autoEncrypter?: AutoEncrypter
    ca?: string | Buffer | (string | Buffer)[]

    Optionally override the trusted CA certificates. Default is to trust the well-known CAs curated by Mozilla. Mozilla's CAs are completely replaced when CAs are explicitly specified using this option.

    -
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]
    +
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]

    Cert chains in PEM format. One cert chain should be provided per private key. Each cert chain should consist of the PEM formatted certificate for a provided private key, followed by the PEM @@ -35,7 +35,7 @@ information, see modifying the default cipher suite. Permitted ciphers can be obtained via tls.getCiphers(). Cipher names must be uppercased in order for OpenSSL to accept them.

    -
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS?: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]
    +
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS?: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]

    PEM formatted CRLs (Certificate Revocation Lists).

    ecdhCurve?: string

    A string describing a named curve or a colon separated list of curve @@ -45,7 +45,7 @@ recent releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve. Default: tls.DEFAULT_ECDH_CURVE.

    -
    family?: number
    hints?: number
    hostAddress: HostAddress
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]
    +
    family?: number
    hints?: number
    hostAddress: HostAddress
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]

    Private keys in PEM format. PEM allows the option of private keys being encrypted. Encrypted keys will be decrypted with options.passphrase. Multiple keys using different algorithms can be @@ -54,15 +54,15 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    loadBalanced: boolean
    +
    loadBalanced: boolean

    If we are in load balancer mode.

    -
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    maxIdleTimeMS: number
    +
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    maxIdleTimeMS: number

    The maximum amount of time a connection should remain idle in the connection pool before being marked idle.

    -
    maxPoolSize: number
    +
    maxPoolSize: number

    The maximum number of connections that may be associated with a pool at a given time. This includes in use and available connections.

    -
    metadata: ClientMetadata
    minDHSize?: number
    minPoolSize: number
    +
    metadata: ClientMetadata
    minDHSize?: number
    minPoolSize: number

    The minimum number of connections that MUST exist at any moment in a single connection pool.

    -
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string
    +
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string

    Shared passphrase used for a single private key and/or a PFX.

    pfx?: string | Buffer | (string | Buffer | PxfObject)[]

    PFX or PKCS12 encoded private key and certificate chain. pfx is an @@ -73,7 +73,7 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted PFX will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    rejectUnauthorized?: boolean
    +
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    rejectUnauthorized?: boolean

    If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

    @@ -90,6 +90,6 @@ any TLS protocol version up to TLSv1.3. It is not recommended to use TLS versions less than 1.2, but it may be required for interoperability. Default: none, see minVersion.

    -
    serverApi?: ServerApi
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    tls: boolean
    waitQueueTimeoutMS: number
    +
    serverApi?: ServerApi
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    tls: boolean
    waitQueueTimeoutMS: number

    The maximum amount of time operation execution should wait for a connection to become available. The default is 0 which means there is no limit.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CountDocumentsOptions.html b/docs/Next/interfaces/CountDocumentsOptions.html index 4d643f872fb..160080b9ea6 100644 --- a/docs/Next/interfaces/CountDocumentsOptions.html +++ b/docs/Next/interfaces/CountDocumentsOptions.html @@ -1,58 +1,58 @@ -CountDocumentsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CountDocumentsOptions

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean
    +CountDocumentsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CountDocumentsOptions

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean

    allowDiskUse lets the server know if it can use disk to store temporary results for the aggregation (requires mongodb 2.6 >).

    -
    authdb?: string
    batchSize?: number
    +
    authdb?: string
    batchSize?: number

    The number of documents to return per batch. See aggregation documentation.

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    Allow driver to bypass schema validation in MongoDB 3.2 or higher.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specify collation.

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    cursor?: Document
    +
    cursor?: Document

    Return the query as cursor, on 2.6 > it returns as a real cursor on pre 2.6 it returns as an emulated cursor.

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: Hint
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: Hint

    Add an index selection hint to an aggregation command

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    let?: Document
    +
    let?: Document

    Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0).

    -
    limit?: number
    +
    limit?: number

    The maximum amounts to count before aborting.

    -
    maxAwaitTimeMS?: number
    +
    maxAwaitTimeMS?: number

    The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query.

    -
    maxTimeMS?: number
    +
    maxTimeMS?: number

    specifies a cumulative time limit in milliseconds for processing operations on the cursor. MongoDB interrupts the operation at the earliest following interrupt point.

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: string
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    skip?: number
    +
    skip?: number

    The number of documents to skip.

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CountOptions.html b/docs/Next/interfaces/CountOptions.html index 2b333918c20..17e6a61cb34 100644 --- a/docs/Next/interfaces/CountOptions.html +++ b/docs/Next/interfaces/CountOptions.html @@ -1,46 +1,46 @@ -CountOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CountOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +CountOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CountOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: string | Document
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: string | Document

    An index name hint for the query.

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    limit?: number
    +
    limit?: number

    The maximum amounts to count before aborting.

    -
    maxTimeMS?: number
    +
    maxTimeMS?: number

    Number of milliseconds to wait before aborting the query.

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    skip?: number
    +
    skip?: number

    The number of documents to skip.

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CreateCollectionOptions.html b/docs/Next/interfaces/CreateCollectionOptions.html index 6e3d712d908..23425143247 100644 --- a/docs/Next/interfaces/CreateCollectionOptions.html +++ b/docs/Next/interfaces/CreateCollectionOptions.html @@ -1,34 +1,34 @@ -CreateCollectionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CreateCollectionOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    autoIndexId?: boolean
    deprecated

    Create an index on the _id field of the document, True by default on MongoDB 2.6 - 3.0

    +CreateCollectionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CreateCollectionOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    autoIndexId?: boolean
    deprecated

    Create an index on the _id field of the document, True by default on MongoDB 2.6 - 3.0

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    capped?: boolean
    +
    capped?: boolean

    Create a capped collection

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    expireAfterSeconds?: number
    +
    expireAfterSeconds?: number

    The number of seconds after which a document in a timeseries collection expires.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    flags?: number
    +
    flags?: number

    Available for the MMAPv1 storage engine only to set the usePowerOf2Sizes and the noPadding flag

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    indexOptionDefaults?: Document
    +
    indexOptionDefaults?: Document

    Allows users to specify a default configuration for indexes when creating a collection on MongoDB 3.2 or higher

    -
    max?: number
    +
    max?: number

    The maximum number of documents in the capped collection

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    pipeline?: Document[]
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    pipeline?: Document[]

    An array that consists of the aggregation pipeline stage. Creates the view by applying the specified pipeline to the viewOn collection or view on MongoDB 3.4 or higher

    -
    pkFactory?: PkFactory
    +
    pkFactory?: PkFactory

    A primary key factory function for generation of custom _id keys.

    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    @@ -36,34 +36,34 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    size?: number
    +
    size?: number

    The size of the capped collection in bytes

    -
    storageEngine?: Document
    +
    storageEngine?: Document

    Allows users to specify configuration to the storage engine on a per-collection basis when creating a collection on MongoDB 3.0 or higher

    -
    strict?: boolean
    +
    strict?: boolean

    Returns an error if the collection does not exist

    -
    +

    A document specifying configuration options for timeseries collections.

    -
    validationAction?: string
    +
    validationAction?: string

    Determines whether to error on invalid documents or just warn about the violations but allow invalid documents to be inserted on MongoDB 3.2 or higher

    -
    validationLevel?: string
    +
    validationLevel?: string

    Determines how strictly MongoDB applies the validation rules to existing documents during an update on MongoDB 3.2 or higher

    -
    validator?: Document
    +
    validator?: Document

    Allows users to specify validation rules or expressions for the collection. For more information, see Document Validation on MongoDB 3.2 or higher

    -
    viewOn?: string
    +
    viewOn?: string

    The name of the source collection or view from which to create the view. The name is not the full namespace of the collection or view; i.e. does not include the database name and implies the same database as the view to create on MongoDB 3.4 or higher

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CreateIndexesOptions.html b/docs/Next/interfaces/CreateIndexesOptions.html index 1cdd75288af..bf9283e5cc7 100644 --- a/docs/Next/interfaces/CreateIndexesOptions.html +++ b/docs/Next/interfaces/CreateIndexesOptions.html @@ -1,35 +1,35 @@ -CreateIndexesOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CreateIndexesOptions

    Hierarchy

    Index

    Properties

    2dsphereIndexVersion?: number
    authdb?: string
    background?: boolean
    +CreateIndexesOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CreateIndexesOptions

    Hierarchy

    Index

    Properties

    2dsphereIndexVersion?: number
    authdb?: string
    background?: boolean

    Creates the index in the background, yielding whenever possible.

    -
    bits?: number
    bsonRegExp?: boolean
    +
    bits?: number
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bucketSize?: number
    checkKeys?: boolean
    +
    bucketSize?: number
    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    commitQuorum?: string | number
    +
    commitQuorum?: string | number

    (MongoDB 4.4. or higher) Specifies how many data-bearing members of a replica set, including the primary, must complete the index builds successfully before the primary marks the indexes as ready. This option accepts the same values for the "w" field in a write concern plus "votingMembers", which indicates all voting data-bearing nodes.

    -
    dbName?: string
    default_language?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    default_language?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    expireAfterSeconds?: number
    +
    expireAfterSeconds?: number

    Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hidden?: boolean
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hidden?: boolean

    Specifies that the index should exist on the target collection but should not be used by the query planner when executing operations. (MongoDB 4.4 or higher)

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    language_override?: string
    max?: number
    +
    language_override?: string
    max?: number

    For geospatial indexes set the high bound for the co-ordinates.

    -
    maxTimeMS?: number
    min?: number
    +
    maxTimeMS?: number
    min?: number

    For geospatial indexes set the lower bound for the co-ordinates.

    -
    name?: string
    +
    name?: string

    Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    partialFilterExpression?: Document
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    partialFilterExpression?: Document

    Creates a partial index based on the given filter object (MongoDB 3.2 or higher)

    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    @@ -37,26 +37,26 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    sparse?: boolean
    +
    sparse?: boolean

    Creates a sparse index.

    -
    storageEngine?: Document
    +
    storageEngine?: Document

    Allows users to configure the storage engine on a per-index basis when creating an index. (MongoDB 3.0 or higher)

    -
    textIndexVersion?: number
    unique?: boolean
    +
    textIndexVersion?: number
    unique?: boolean

    Creates an unique index.

    -
    version?: number
    +
    version?: number

    Specifies the index version number, either 0 or 1.

    -
    weights?: Document
    wildcardProjection?: Document
    willRetryWrites?: boolean
    +
    weights?: Document
    wildcardProjection?: Document
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CursorCloseOptions.html b/docs/Next/interfaces/CursorCloseOptions.html index 1dc47d767bc..5b5c2aed20f 100644 --- a/docs/Next/interfaces/CursorCloseOptions.html +++ b/docs/Next/interfaces/CursorCloseOptions.html @@ -1,3 +1,3 @@ CursorCloseOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CursorCloseOptions

    deprecated

    This interface is deprecated

    -

    Hierarchy

    • CursorCloseOptions

    Index

    Properties

    Properties

    skipKillCursors?: boolean
    deprecated

    the skipKillCursors option is deprecated

    +

    Hierarchy

    • CursorCloseOptions

    Index

    Properties

    Properties

    skipKillCursors?: boolean
    deprecated

    the skipKillCursors option is deprecated

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/CursorStreamOptions.html b/docs/Next/interfaces/CursorStreamOptions.html index 31e6e6bca58..4cad7bc97bd 100644 --- a/docs/Next/interfaces/CursorStreamOptions.html +++ b/docs/Next/interfaces/CursorStreamOptions.html @@ -1,3 +1,3 @@ -CursorStreamOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface CursorStreamOptions

    Hierarchy

    • CursorStreamOptions

    Index

    Methods

    Methods

    Hierarchy

    Index

    Properties

    allowDiskUse?: boolean

    Allows disk use for blocking sort operations exceeding 100MB memory. (MongoDB 3.2 or higher)

    -
    allowPartialResults?: boolean
    +
    allowPartialResults?: boolean

    For queries against a sharded collection, allows the command (or subsequent getMore commands) to return partial results, rather than an error, if one or more queried shards are unavailable.

    -
    authdb?: string
    awaitData?: boolean
    +
    authdb?: string
    awaitData?: boolean

    Specify if the cursor is a tailable-await cursor. Requires tailable to be true

    -
    batchSize?: number
    +
    batchSize?: number

    Set the batchSize for the getMoreCommand when iterating over the query results.

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).

    -
    comment?: string | Document
    +
    comment?: string | Document

    You can put a $comment field on a query to make looking in the profiler logs simpler.

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: Hint
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: Hint

    Tell the query to use specific indexes in the query. Object of indexes to use, {'_id':1}

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    let?: Document
    +
    let?: Document

    Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0).

    -
    limit?: number
    +
    limit?: number

    Sets the limit of documents returned in the query.

    -
    max?: Document
    +
    max?: Document

    The exclusive upper bound for a specific index

    -
    maxAwaitTimeMS?: number
    +
    maxAwaitTimeMS?: number

    The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query. Requires tailable and awaitData to be true

    -
    maxTimeMS?: number
    +
    maxTimeMS?: number

    Number of milliseconds to wait before aborting the query.

    -
    min?: Document
    +
    min?: Document

    The inclusive lower bound for a specific index

    -
    noCursorTimeout?: boolean
    +
    noCursorTimeout?: boolean

    The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that.

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    projection?: Document
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    projection?: Document

    The fields to return in the query. Object of fields to either include or exclude (one of, not both), {'a':1, 'b': 1} or {'a': 0, 'b': 0}

    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    @@ -49,32 +49,32 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    -
    returnKey?: boolean
    +
    returnKey?: boolean

    If true, returns only the index keys in the resulting documents.

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    showRecordId?: boolean
    +
    showRecordId?: boolean

    Determines whether to return the record identifier for each document. If true, adds a field $recordId to the returned documents.

    -
    singleBatch?: boolean
    +
    singleBatch?: boolean

    Determines whether to close the cursor after the first batch. Defaults to false.

    -
    skip?: number
    +
    skip?: number

    Set to skip N documents ahead in your query (useful for pagination).

    -
    sort?: Sort
    +
    sort?: Sort

    Set to sort the documents coming back from the query. Array of indexes, [['a', 1]] etc.

    -
    tailable?: boolean
    +
    tailable?: boolean

    Specify if the cursor is tailable.

    -
    timeout?: boolean
    +
    timeout?: boolean

    Specify if the cursor can timeout.

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/GridFSBucketOptions.html b/docs/Next/interfaces/GridFSBucketOptions.html index 40c7df4ffc9..f178e626ca3 100644 --- a/docs/Next/interfaces/GridFSBucketOptions.html +++ b/docs/Next/interfaces/GridFSBucketOptions.html @@ -1,9 +1,9 @@ -GridFSBucketOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketOptions

    Hierarchy

    Index

    Properties

    bucketName?: string
    +GridFSBucketOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketOptions

    Hierarchy

    Index

    Properties

    bucketName?: string

    The 'files' and 'chunks' collections will be prefixed with the bucket name followed by a dot.

    -
    chunkSizeBytes?: number
    +
    chunkSizeBytes?: number

    Number of bytes stored in each chunk. Defaults to 255KB

    -
    readPreference?: ReadPreference
    +
    readPreference?: ReadPreference

    Read preference to be passed to read operations

    -
    +

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/GridFSBucketReadStreamOptions.html b/docs/Next/interfaces/GridFSBucketReadStreamOptions.html index 4bb3ac74191..a04a1e67921 100644 --- a/docs/Next/interfaces/GridFSBucketReadStreamOptions.html +++ b/docs/Next/interfaces/GridFSBucketReadStreamOptions.html @@ -1,5 +1,5 @@ -GridFSBucketReadStreamOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketReadStreamOptions

    Hierarchy

    Index

    Properties

    end?: number
    +GridFSBucketReadStreamOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketReadStreamOptions

    Hierarchy

    Index

    Properties

    end?: number

    0-based offset in bytes to stop streaming before

    -
    skip?: number
    sort?: Sort
    start?: number
    +
    skip?: number
    sort?: Sort
    start?: number

    0-based offset in bytes to start streaming from

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/GridFSBucketReadStreamOptionsWithRevision.html b/docs/Next/interfaces/GridFSBucketReadStreamOptionsWithRevision.html index 73530234eab..1634678fc4d 100644 --- a/docs/Next/interfaces/GridFSBucketReadStreamOptionsWithRevision.html +++ b/docs/Next/interfaces/GridFSBucketReadStreamOptionsWithRevision.html @@ -1,9 +1,9 @@ -GridFSBucketReadStreamOptionsWithRevision | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketReadStreamOptionsWithRevision

    Hierarchy

    Index

    Properties

    end?: number
    +GridFSBucketReadStreamOptionsWithRevision | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketReadStreamOptionsWithRevision

    Hierarchy

    Index

    Properties

    end?: number

    0-based offset in bytes to stop streaming before

    -
    revision?: number
    +
    revision?: number

    The revision number relative to the oldest file with the given filename. 0 gets you the oldest file, 1 gets you the 2nd oldest, -1 gets you the newest.

    -
    skip?: number
    sort?: Sort
    start?: number
    +
    skip?: number
    sort?: Sort
    start?: number

    0-based offset in bytes to start streaming from

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/GridFSBucketWriteStreamOptions.html b/docs/Next/interfaces/GridFSBucketWriteStreamOptions.html index f4c3f4a547c..b5db9d09104 100644 --- a/docs/Next/interfaces/GridFSBucketWriteStreamOptions.html +++ b/docs/Next/interfaces/GridFSBucketWriteStreamOptions.html @@ -1,13 +1,13 @@ -GridFSBucketWriteStreamOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketWriteStreamOptions

    Hierarchy

    Index

    Properties

    aliases?: string[]
    +GridFSBucketWriteStreamOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSBucketWriteStreamOptions

    Hierarchy

    Index

    Properties

    aliases?: string[]

    Array of strings to store in the file document's aliases field

    -
    chunkSizeBytes?: number
    +
    chunkSizeBytes?: number

    Overwrite this bucket's chunkSizeBytes for this file

    -
    contentType?: string
    +
    contentType?: string

    String to store in the file document's contentType field

    -
    +

    Custom file id for the GridFS file.

    -
    metadata?: Document
    +
    metadata?: Document

    Object to store in the file document's metadata field

    -
    +

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/GridFSChunk.html b/docs/Next/interfaces/GridFSChunk.html index c9695116775..3cad9505241 100644 --- a/docs/Next/interfaces/GridFSChunk.html +++ b/docs/Next/interfaces/GridFSChunk.html @@ -1 +1 @@ -GridFSChunk | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSChunk

    Hierarchy

    • GridFSChunk

    Index

    Properties

    data: Uint8Array | Buffer
    files_id: ObjectId
    n: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +GridFSChunk | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSChunk

    Hierarchy

    • GridFSChunk

    Index

    Properties

    data: Uint8Array | Buffer
    files_id: ObjectId
    n: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/GridFSFile.html b/docs/Next/interfaces/GridFSFile.html index b46873d7e86..06f6ada3dde 100644 --- a/docs/Next/interfaces/GridFSFile.html +++ b/docs/Next/interfaces/GridFSFile.html @@ -1 +1 @@ -GridFSFile | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSFile

    Hierarchy

    • GridFSFile

    Index

    Properties

    aliases?: string[]
    chunkSize: number
    contentType?: string
    filename: string
    length: number
    metadata?: Document
    uploadDate: Date

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +GridFSFile | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface GridFSFile

    Hierarchy

    • GridFSFile

    Index

    Properties

    aliases?: string[]
    chunkSize: number
    contentType?: string
    filename: string
    length: number
    metadata?: Document
    uploadDate: Date

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/HedgeOptions.html b/docs/Next/interfaces/HedgeOptions.html index ec4df424a5c..969c4c6f1fe 100644 --- a/docs/Next/interfaces/HedgeOptions.html +++ b/docs/Next/interfaces/HedgeOptions.html @@ -1,3 +1,3 @@ -HedgeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface HedgeOptions

    Hierarchy

    • HedgeOptions

    Index

    Properties

    Properties

    enabled?: boolean
    +HedgeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface HedgeOptions

    Hierarchy

    • HedgeOptions

    Index

    Properties

    Properties

    enabled?: boolean

    Explicitly enable or disable hedged reads.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/IndexDescription.html b/docs/Next/interfaces/IndexDescription.html index 0c717ff63b2..7d8e544a1cb 100644 --- a/docs/Next/interfaces/IndexDescription.html +++ b/docs/Next/interfaces/IndexDescription.html @@ -1,21 +1,21 @@ -IndexDescription | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface IndexDescription

    Hierarchy

    • Pick<CreateIndexesOptions, "background" | "unique" | "partialFilterExpression" | "sparse" | "hidden" | "expireAfterSeconds" | "storageEngine" | "version" | "weights" | "default_language" | "language_override" | "textIndexVersion" | "2dsphereIndexVersion" | "bits" | "min" | "max" | "bucketSize" | "wildcardProjection">
      • IndexDescription

    Index

    Properties

    2dsphereIndexVersion?: number
    background?: boolean
    +IndexDescription | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface IndexDescription

    Hierarchy

    • Pick<CreateIndexesOptions, "background" | "unique" | "partialFilterExpression" | "sparse" | "hidden" | "expireAfterSeconds" | "storageEngine" | "version" | "weights" | "default_language" | "language_override" | "textIndexVersion" | "2dsphereIndexVersion" | "bits" | "min" | "max" | "bucketSize" | "wildcardProjection">
      • IndexDescription

    Index

    Properties

    2dsphereIndexVersion?: number
    background?: boolean

    Creates the index in the background, yielding whenever possible.

    -
    bits?: number
    bucketSize?: number
    collation?: CollationOptions
    default_language?: string
    expireAfterSeconds?: number
    +
    bits?: number
    bucketSize?: number
    collation?: CollationOptions
    default_language?: string
    expireAfterSeconds?: number

    Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)

    -
    hidden?: boolean
    +
    hidden?: boolean

    Specifies that the index should exist on the target collection but should not be used by the query planner when executing operations. (MongoDB 4.4 or higher)

    -
    language_override?: string
    max?: number
    +
    language_override?: string
    max?: number

    For geospatial indexes set the high bound for the co-ordinates.

    -
    min?: number
    +
    min?: number

    For geospatial indexes set the lower bound for the co-ordinates.

    -
    name?: string
    partialFilterExpression?: Document
    +
    name?: string
    partialFilterExpression?: Document

    Creates a partial index based on the given filter object (MongoDB 3.2 or higher)

    -
    sparse?: boolean
    +
    sparse?: boolean

    Creates a sparse index.

    -
    storageEngine?: Document
    +
    storageEngine?: Document

    Allows users to configure the storage engine on a per-index basis when creating an index. (MongoDB 3.0 or higher)

    -
    textIndexVersion?: number
    unique?: boolean
    +
    textIndexVersion?: number
    unique?: boolean

    Creates an unique index.

    -
    version?: number
    +
    version?: number

    Specifies the index version number, either 0 or 1.

    -
    weights?: Document
    wildcardProjection?: Document

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    weights?: Document
    wildcardProjection?: Document

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/IndexInformationOptions.html b/docs/Next/interfaces/IndexInformationOptions.html index bbcdb773f7c..8a39cca7619 100644 --- a/docs/Next/interfaces/IndexInformationOptions.html +++ b/docs/Next/interfaces/IndexInformationOptions.html @@ -1 +1 @@ -IndexInformationOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface IndexInformationOptions

    Hierarchy

    • IndexInformationOptions

    Index

    Properties

    full?: boolean
    readPreference?: ReadPreference
    session?: ClientSession

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +IndexInformationOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface IndexInformationOptions

    Hierarchy

    • IndexInformationOptions

    Index

    Properties

    full?: boolean
    readPreference?: ReadPreference
    session?: ClientSession

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/InsertManyResult.html b/docs/Next/interfaces/InsertManyResult.html index 0db00dbac5d..35da3305f2b 100644 --- a/docs/Next/interfaces/InsertManyResult.html +++ b/docs/Next/interfaces/InsertManyResult.html @@ -1,7 +1,7 @@ -InsertManyResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertManyResult<TSchema>

    Type parameters

    Hierarchy

    • InsertManyResult

    Index

    Properties

    acknowledged: boolean
    +InsertManyResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertManyResult<TSchema>

    Type parameters

    Hierarchy

    • InsertManyResult

    Index

    Properties

    acknowledged: boolean

    Indicates whether this write result was acknowledged. If not, then all other members of this result will be undefined

    -
    insertedCount: number
    +
    insertedCount: number

    The number of inserted documents for this operations

    -
    insertedIds: {}
    +
    insertedIds: {}

    Map of the index of the inserted document to the id of the inserted document

    Type declaration

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/InsertOneModel.html b/docs/Next/interfaces/InsertOneModel.html index 36c13ca316d..88a8403f412 100644 --- a/docs/Next/interfaces/InsertOneModel.html +++ b/docs/Next/interfaces/InsertOneModel.html @@ -1,3 +1,3 @@ -InsertOneModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertOneModel<TSchema>

    Type parameters

    Hierarchy

    • InsertOneModel

    Index

    Properties

    Properties

    document: OptionalId<TSchema>
    +InsertOneModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertOneModel<TSchema>

    Type parameters

    Hierarchy

    • InsertOneModel

    Index

    Properties

    Properties

    document: OptionalId<TSchema>

    The document to insert.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/InsertOneOptions.html b/docs/Next/interfaces/InsertOneOptions.html index e416101afc0..5d129221ddc 100644 --- a/docs/Next/interfaces/InsertOneOptions.html +++ b/docs/Next/interfaces/InsertOneOptions.html @@ -1,42 +1,42 @@ -InsertOneOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertOneOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +InsertOneOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertOneOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    Allow driver to bypass schema validation in MongoDB 3.2 or higher.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    forceServerObjectId?: boolean
    +
    forceServerObjectId?: boolean

    Force server to assign _id values instead of driver.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/InsertOneResult.html b/docs/Next/interfaces/InsertOneResult.html index 0383395d51b..92753692279 100644 --- a/docs/Next/interfaces/InsertOneResult.html +++ b/docs/Next/interfaces/InsertOneResult.html @@ -1,5 +1,5 @@ -InsertOneResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertOneResult<TSchema>

    Type parameters

    Hierarchy

    • InsertOneResult

    Index

    Properties

    acknowledged: boolean
    +InsertOneResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface InsertOneResult<TSchema>

    Type parameters

    Hierarchy

    • InsertOneResult

    Index

    Properties

    acknowledged: boolean

    Indicates whether this write result was acknowledged. If not, then all other members of this result will be undefined

    -
    insertedId: InferIdType<TSchema>
    +
    insertedId: InferIdType<TSchema>

    The identifier that was inserted. If the server generated the identifier, this value will be null as the driver does not have access to that data

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ListCollectionsOptions.html b/docs/Next/interfaces/ListCollectionsOptions.html index d0e76260103..5e7e1eae314 100644 --- a/docs/Next/interfaces/ListCollectionsOptions.html +++ b/docs/Next/interfaces/ListCollectionsOptions.html @@ -1,44 +1,44 @@ -ListCollectionsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListCollectionsOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    authorizedCollections?: boolean
    +ListCollectionsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListCollectionsOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    authorizedCollections?: boolean

    Since 4.0: If true and nameOnly is true, allows a user without the required privilege (i.e. listCollections action on the database) to run the command when access control is enforced.

    -
    batchSize?: number
    +
    batchSize?: number

    The batchSize for the returned command cursor or if pre 2.8 the systems batch collection

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    nameOnly?: boolean
    +
    maxTimeMS?: number
    nameOnly?: boolean

    Since 4.0: If true, will only return the collection name in the response, and will omit additional info

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ListDatabasesOptions.html b/docs/Next/interfaces/ListDatabasesOptions.html index ffc1e591035..984b148518b 100644 --- a/docs/Next/interfaces/ListDatabasesOptions.html +++ b/docs/Next/interfaces/ListDatabasesOptions.html @@ -1,44 +1,44 @@ -ListDatabasesOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListDatabasesOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    authorizedDatabases?: boolean
    +ListDatabasesOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListDatabasesOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    authorizedDatabases?: boolean

    A flag that determines which databases are returned based on the user privileges when access control is enabled

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    filter?: Document
    +
    filter?: Document

    A query predicate that determines which databases are listed

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    nameOnly?: boolean
    +
    maxTimeMS?: number
    nameOnly?: boolean

    A flag to indicate whether the command should return just the database names, or return both database names and size information

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ListDatabasesResult.html b/docs/Next/interfaces/ListDatabasesResult.html index 0f52b8d4ee9..6f6f7aacd3d 100644 --- a/docs/Next/interfaces/ListDatabasesResult.html +++ b/docs/Next/interfaces/ListDatabasesResult.html @@ -1 +1 @@ -ListDatabasesResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListDatabasesResult

    Hierarchy

    • ListDatabasesResult

    Index

    Properties

    databases: ({ empty?: boolean; name: string; sizeOnDisk?: number } & Document)[]
    ok: 0 | 1
    totalSize?: number
    totalSizeMb?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ListDatabasesResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListDatabasesResult

    Hierarchy

    • ListDatabasesResult

    Index

    Properties

    databases: ({ empty?: boolean; name: string; sizeOnDisk?: number } & Document)[]
    ok: 0 | 1
    totalSize?: number
    totalSizeMb?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ListIndexesOptions.html b/docs/Next/interfaces/ListIndexesOptions.html index 9982efe67d3..a894312bd37 100644 --- a/docs/Next/interfaces/ListIndexesOptions.html +++ b/docs/Next/interfaces/ListIndexesOptions.html @@ -1,40 +1,40 @@ -ListIndexesOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListIndexesOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    batchSize?: number
    +ListIndexesOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ListIndexesOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    batchSize?: number

    The batchSize for the returned command cursor or if pre 2.8 the systems batch collection

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/LoggerOptions.html b/docs/Next/interfaces/LoggerOptions.html index b7863e8f2f0..82f4e7daeac 100644 --- a/docs/Next/interfaces/LoggerOptions.html +++ b/docs/Next/interfaces/LoggerOptions.html @@ -1 +1 @@ -LoggerOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface LoggerOptions

    Hierarchy

    Index

    Properties

    loggerLevel?: LoggerLevel

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +LoggerOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface LoggerOptions

    Hierarchy

    Index

    Properties

    loggerLevel?: LoggerLevel

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/MapReduceOptions.html b/docs/Next/interfaces/MapReduceOptions.html index 7d921459c6c..2e3e701a1a1 100644 --- a/docs/Next/interfaces/MapReduceOptions.html +++ b/docs/Next/interfaces/MapReduceOptions.html @@ -1,31 +1,31 @@ -MapReduceOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface MapReduceOptions<TKey, TValue>

    Type parameters

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +MapReduceOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface MapReduceOptions<TKey, TValue>

    Type parameters

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    Allow driver to bypass schema validation in MongoDB 3.2 or higher.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    finalize?: string | FinalizeFunction<TKey, TValue>
    +
    finalize?: string | FinalizeFunction<TKey, TValue>

    Finalize function.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    jsMode?: boolean
    +
    jsMode?: boolean

    It is possible to make the execution stay in JS. Provided in MongoDB > 2.0.X.

    -
    keeptemp?: boolean
    +
    keeptemp?: boolean

    Keep temporary data.

    -
    limit?: number
    +
    limit?: number

    Number of objects to return from collection.

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: "inline" | { inline: 1 } | { replace: string } | { merge: string } | { reduce: string }
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    out?: "inline" | { inline: 1 } | { replace: string } | { merge: string } | { reduce: string }

    Sets the output target for the map reduce job.

    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    @@ -33,26 +33,26 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    query?: Document
    +
    query?: Document

    Query filter object.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    -
    scope?: Document
    +
    scope?: Document

    Can pass in variables that can be access from map/reduce/finalize.

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    sort?: Sort
    +
    sort?: Sort

    Sorts the input objects using this key. Useful for optimization, like sorting by the emit key for fewer reduces.

    -
    verbose?: boolean
    +
    verbose?: boolean

    Provide statistics on job execution time.

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ModifyResult.html b/docs/Next/interfaces/ModifyResult.html index 9c48dbe0dfc..9b8520346c1 100644 --- a/docs/Next/interfaces/ModifyResult.html +++ b/docs/Next/interfaces/ModifyResult.html @@ -1 +1 @@ -ModifyResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ModifyResult<TSchema>

    Type parameters

    Hierarchy

    • ModifyResult

    Index

    Properties

    lastErrorObject?: Document
    ok: 0 | 1
    value: null | WithId<TSchema>

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ModifyResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ModifyResult<TSchema>

    Type parameters

    Hierarchy

    • ModifyResult

    Index

    Properties

    lastErrorObject?: Document
    ok: 0 | 1
    value: null | WithId<TSchema>

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/MongoClientOptions.html b/docs/Next/interfaces/MongoClientOptions.html index 2c14306093f..608b6b46440 100644 --- a/docs/Next/interfaces/MongoClientOptions.html +++ b/docs/Next/interfaces/MongoClientOptions.html @@ -4,17 +4,17 @@

    Hierarchy

    Index

    Properties

    ALPNProtocols?: Uint8Array | string[] | Uint8Array[]

    An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

    -
    appName?: string
    +
    appName?: string

    The name of the application that created this MongoClient instance. MongoDB 3.4 and newer will print this value in the server log upon establishing each connection. It is also recorded in the slow query log and profile collections

    -
    auth?: Auth
    +
    auth?: Auth

    The auth settings for when connection to server.

    -
    authMechanism?: AuthMechanism
    +
    authMechanism?: AuthMechanism

    Specify the authentication mechanism that MongoDB will use to authenticate the connection.

    -
    authMechanismProperties?: AuthMechanismProperties
    +
    authMechanismProperties?: AuthMechanismProperties

    Specify properties for the specified authMechanism as a comma-separated list of colon-separated key-value pairs.

    -
    authSource?: string
    +
    authSource?: string

    Specify the database name associated with the user’s credentials.

    -
    autoEncryption?: AutoEncryptionOptions
    +
    autoEncryption?: AutoEncryptionOptions

    Optionally enable client side auto encryption

    remarks

    Automatic encryption is an enterprise only feature that only applies to operations on a collection. Automatic encryption is not supported for operations on a database or view, and operations that are not bypassed will result in error (see libmongocrypt: Auto Encryption Allow-List). To bypass automatic encryption for all operations, set bypassAutoEncryption=true in AutoEncryptionOpts.

    @@ -63,15 +63,15 @@ information, see modifying the default cipher suite. Permitted ciphers can be obtained via tls.getCiphers(). Cipher names must be uppercased in order for OpenSSL to accept them.

    -
    compressors?: string | ("none" | "snappy" | "zlib")[]
    +
    compressors?: string | ("none" | "snappy" | "zlib")[]

    An array or comma-delimited string of compressors to enable network compression for communication between this client and a mongod/mongos instance.

    -
    connectTimeoutMS?: number
    +
    connectTimeoutMS?: number

    The time in milliseconds to attempt a connection before timing out.

    crl?: string | Buffer | (string | Buffer)[]

    PEM formatted CRLs (Certificate Revocation Lists).

    -
    directConnection?: boolean
    +
    directConnection?: boolean

    Allow a driver to force a Single topology type with a connection string containing one host

    -
    driverInfo?: DriverInfo
    +
    driverInfo?: DriverInfo

    Allows a wrapping driver to amend the client metadata generated by the driver to include information about the wrapping driver

    ecdhCurve?: string

    A string describing a named curve or a colon separated list of curve @@ -81,21 +81,21 @@ recent releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve. Default: tls.DEFAULT_ECDH_CURVE.

    -
    enableUtf8Validation?: boolean
    +
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    family?: number
    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    forceServerObjectId?: boolean
    +
    forceServerObjectId?: boolean

    Force server to assign _id values instead of driver

    -
    heartbeatFrequencyMS?: number
    +
    heartbeatFrequencyMS?: number

    heartbeatFrequencyMS controls when the driver checks the state of the MongoDB deployment. Specify the interval (in milliseconds) between checks, counted from the end of the previous check until the beginning of the next one.

    hints?: number
    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    journal?: boolean
    +
    journal?: boolean

    The journal write concern

    -
    keepAlive?: boolean
    +
    keepAlive?: boolean

    TCP Connection keep alive enabled

    -
    keepAliveInitialDelay?: number
    +
    keepAliveInitialDelay?: number

    The number of milliseconds to wait before initiating keepAlive on the TCP socket

    key?: string | Buffer | (Buffer | KeyObject)[]

    Private keys in PEM format. PEM allows the option of private keys @@ -106,27 +106,27 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    loadBalanced?: boolean
    +
    loadBalanced?: boolean

    Instruct the driver it is connecting to a load balancer fronting a mongos like service

    -
    localAddress?: string
    localPort?: number
    localThresholdMS?: number
    +
    localAddress?: string
    localPort?: number
    localThresholdMS?: number

    The size (in milliseconds) of the latency window for selecting among multiple suitable MongoDB instances.

    -
    logger?: Logger
    +
    logger?: Logger

    Custom logger object

    -
    loggerLevel?: LoggerLevel
    +
    loggerLevel?: LoggerLevel

    The logging level

    -
    lookup?: LookupFunction
    maxIdleTimeMS?: number
    +
    lookup?: LookupFunction
    maxIdleTimeMS?: number

    The maximum number of milliseconds that a connection can remain idle in the pool before being removed and closed.

    -
    maxPoolSize?: number
    +
    maxPoolSize?: number

    The maximum number of connections in the connection pool.

    -
    maxStalenessSeconds?: number
    +
    maxStalenessSeconds?: number

    Specifies, in seconds, how stale a secondary can be before the client stops using it for read operations.

    -
    minDHSize?: number
    minHeartbeatFrequencyMS?: number
    +
    minDHSize?: number
    minHeartbeatFrequencyMS?: number

    Sets the minimum heartbeat frequency. In the event that the driver has to frequently re-check a server's availability, it will wait at least this long since the previous check to avoid wasted effort.

    -
    minPoolSize?: number
    +
    minPoolSize?: number

    The minimum number of connections in the connection pool.

    -
    monitorCommands?: boolean
    +
    monitorCommands?: boolean

    Enable command monitoring for this client

    -
    noDelay?: boolean
    +
    noDelay?: boolean

    TCP Connection no delay

    passphrase?: string

    Shared passphrase used for a single private key and/or a PFX.

    @@ -139,9 +139,9 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted PFX will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    pkFactory?: PkFactory
    +
    pkFactory?: PkFactory

    A primary key factory function for generation of custom _id keys

    -
    promiseLibrary?: any
    +
    promiseLibrary?: any

    A Promise library class the application wishes to use such as Bluebird, must be ES6 compatible

    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    @@ -149,34 +149,34 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    proxyHost?: string
    +
    proxyHost?: string

    Configures a Socks5 proxy host used for creating TCP connections.

    -
    proxyPassword?: string
    +
    proxyPassword?: string

    Configures a Socks5 proxy password when the proxy in proxyHost requires username/password authentication.

    -
    proxyPort?: number
    +
    proxyPort?: number

    Configures a Socks5 proxy port used for creating TCP connections.

    -
    proxyUsername?: string
    +
    proxyUsername?: string

    Configures a Socks5 proxy username when the proxy in proxyHost requires username/password authentication.

    -
    raw?: boolean
    +
    raw?: boolean

    Return document results as raw BSON buffers

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern for the collection (only MongoDB 3.2 or higher supported)

    -
    readConcernLevel?: ReadConcernLevel
    +
    readConcernLevel?: ReadConcernLevel

    The level of isolation

    -
    +

    Specifies the read preferences for this connection

    -
    readPreferenceTags?: TagSet[]
    +
    readPreferenceTags?: TagSet[]

    Specifies the tags document as a comma-separated list of colon-separated key-value pairs.

    rejectUnauthorized?: boolean

    If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

    default

    true

    -
    replicaSet?: string
    +
    replicaSet?: string

    Specifies the name of the replica set, if the mongod is a member of a replica set.

    -
    retryReads?: boolean
    +
    retryReads?: boolean

    Enables retryable reads.

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Enable retryable writes.

    secureContext?: SecureContext

    An optional TLS context object from tls.createSecureContext()

    @@ -192,54 +192,54 @@ interoperability. Default: none, see minVersion.

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    serverApi?: "1" | ServerApi
    +
    serverApi?: "1" | ServerApi

    Server API version

    -
    serverSelectionTimeoutMS?: number
    +
    serverSelectionTimeoutMS?: number

    Specifies how long (in milliseconds) to block for server selection before throwing an exception.

    -
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    +
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number

    The time in milliseconds to attempt a send or receive on a socket before the attempt times out.

    -
    srvMaxHosts?: number
    +
    srvMaxHosts?: number

    The maximum number of hosts to connect to when using an srv connection string, a setting of 0 means unlimited hosts

    -
    srvServiceName?: string
    +
    srvServiceName?: string

    Modifies the srv URI to look like:

    _{srvServiceName}._tcp.{hostname}.{domainname}

    Querying this DNS URI is expected to respond with SRV records

    -
    ssl?: boolean
    +
    ssl?: boolean

    A boolean to enable or disables TLS/SSL for the connection. (The ssl option is equivalent to the tls option.)

    -
    sslCA?: string
    +
    sslCA?: string

    SSL Certificate file path.

    -
    sslCRL?: string
    +
    sslCRL?: string

    SSL Certificate revocation list file path.

    -
    sslCert?: string
    +
    sslCert?: string

    SSL Certificate file path.

    -
    sslKey?: string
    +
    sslKey?: string

    SSL Key file file path.

    -
    sslPass?: string
    +
    sslPass?: string

    SSL Certificate pass phrase.

    -
    sslValidate?: boolean
    +
    sslValidate?: boolean

    Validate mongod server certificate against Certificate Authority

    -
    tls?: boolean
    +
    tls?: boolean

    Enables or disables TLS/SSL for the connection.

    -
    tlsAllowInvalidCertificates?: boolean
    +
    tlsAllowInvalidCertificates?: boolean

    Bypasses validation of the certificates presented by the mongod/mongos instance

    -
    tlsAllowInvalidHostnames?: boolean
    +
    tlsAllowInvalidHostnames?: boolean

    Disables hostname validation of the certificate presented by the mongod/mongos instance.

    -
    tlsCAFile?: string
    +
    tlsCAFile?: string

    Specifies the location of a local .pem file that contains the root certificate chain from the Certificate Authority. This file is used to validate the certificate presented by the mongod/mongos instance.

    -
    tlsCertificateFile?: string
    +
    tlsCertificateFile?: string

    Specifies the location of a local TLS Certificate

    -
    tlsCertificateKeyFile?: string
    +
    tlsCertificateKeyFile?: string

    Specifies the location of a local .pem file that contains either the client's TLS/SSL certificate and key or only the client's TLS/SSL key when tlsCertificateFile is used to provide the certificate.

    -
    tlsCertificateKeyFilePassword?: string
    +
    tlsCertificateKeyFilePassword?: string

    Specifies the password to de-crypt the tlsCertificateKeyFile.

    -
    tlsInsecure?: boolean
    +
    tlsInsecure?: boolean

    Disables various certificate validations.

    -
    w?: W
    +
    w?: W

    The write concern w value

    -
    waitQueueTimeoutMS?: number
    +
    waitQueueTimeoutMS?: number

    The maximum time in milliseconds that a thread can wait for a connection to become available.

    -
    wtimeoutMS?: number
    +
    wtimeoutMS?: number

    The write concern timeout

    -
    zlibCompressionLevel?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 8
    +
    zlibCompressionLevel?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 8

    An integer that specifies the compression level if using zlib for network compression.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/MongoCredentialsOptions.html b/docs/Next/interfaces/MongoCredentialsOptions.html index 9b1eea2340d..9d26113d0ab 100644 --- a/docs/Next/interfaces/MongoCredentialsOptions.html +++ b/docs/Next/interfaces/MongoCredentialsOptions.html @@ -1 +1 @@ -MongoCredentialsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface MongoCredentialsOptions

    Hierarchy

    • MongoCredentialsOptions

    Index

    Properties

    db?: string
    mechanism?: AuthMechanism
    mechanismProperties: AuthMechanismProperties
    password: string
    source: string
    username: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +MongoCredentialsOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface MongoCredentialsOptions

    Hierarchy

    • MongoCredentialsOptions

    Index

    Properties

    db?: string
    mechanism?: AuthMechanism
    mechanismProperties: AuthMechanismProperties
    password: string
    source: string
    username: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/MongoNetworkErrorOptions.html b/docs/Next/interfaces/MongoNetworkErrorOptions.html index 738a9d51c8c..1e71bb2b00a 100644 --- a/docs/Next/interfaces/MongoNetworkErrorOptions.html +++ b/docs/Next/interfaces/MongoNetworkErrorOptions.html @@ -1,3 +1,3 @@ -MongoNetworkErrorOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface MongoNetworkErrorOptions

    Hierarchy

    • MongoNetworkErrorOptions

    Index

    Properties

    Properties

    beforeHandshake: boolean
    +MongoNetworkErrorOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface MongoNetworkErrorOptions

    Hierarchy

    • MongoNetworkErrorOptions

    Index

    Properties

    Properties

    beforeHandshake: boolean

    Indicates the timeout happened before a connection handshake completed

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/MongoOptions.html b/docs/Next/interfaces/MongoOptions.html index 120b837802e..9ec8ff68e2e 100644 --- a/docs/Next/interfaces/MongoOptions.html +++ b/docs/Next/interfaces/MongoOptions.html @@ -3,7 +3,7 @@

    Hierarchy

    • Required<Pick<MongoClientOptions, "autoEncryption" | "connectTimeoutMS" | "directConnection" | "driverInfo" | "forceServerObjectId" | "minHeartbeatFrequencyMS" | "heartbeatFrequencyMS" | "keepAlive" | "keepAliveInitialDelay" | "localThresholdMS" | "logger" | "maxIdleTimeMS" | "maxPoolSize" | "minPoolSize" | "monitorCommands" | "noDelay" | "pkFactory" | "promiseLibrary" | "raw" | "replicaSet" | "retryReads" | "retryWrites" | "serverSelectionTimeoutMS" | "socketTimeoutMS" | "srvMaxHosts" | "srvServiceName" | "tlsAllowInvalidCertificates" | "tlsAllowInvalidHostnames" | "tlsInsecure" | "waitQueueTimeoutMS" | "zlibCompressionLevel">>
    • SupportedNodeConnectionOptions
      • MongoOptions

    Index

    Properties

    ALPNProtocols?: Uint8Array | string[] | Uint8Array[]

    An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

    -
    autoEncrypter?: AutoEncrypter
    autoEncryption: AutoEncryptionOptions
    +
    autoEncrypter?: AutoEncrypter
    autoEncryption: AutoEncryptionOptions

    Optionally enable client side auto encryption

    remarks

    Automatic encryption is an enterprise only feature that only applies to operations on a collection. Automatic encryption is not supported for operations on a database or view, and operations that are not bypassed will result in error (see libmongocrypt: Auto Encryption Allow-List). To bypass automatic encryption for all operations, set bypassAutoEncryption=true in AutoEncryptionOpts.

    @@ -48,13 +48,13 @@ information, see modifying the default cipher suite. Permitted ciphers can be obtained via tls.getCiphers(). Cipher names must be uppercased in order for OpenSSL to accept them.

    -
    compressors: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS: number
    +
    compressors: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS: number

    The time in milliseconds to attempt a connection before timing out.

    -
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]
    +
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]

    PEM formatted CRLs (Certificate Revocation Lists).

    -
    dbName: string
    directConnection: boolean
    +
    dbName: string
    directConnection: boolean

    Allow a driver to force a Single topology type with a connection string containing one host

    -
    driverInfo: DriverInfo
    +
    driverInfo: DriverInfo

    Allows a wrapping driver to amend the client metadata generated by the driver to include information about the wrapping driver

    ecdhCurve?: string

    A string describing a named curve or a colon separated list of curve @@ -64,13 +64,13 @@ recent releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve. Default: tls.DEFAULT_ECDH_CURVE.

    -
    family?: number
    forceServerObjectId: boolean
    +
    family?: number
    forceServerObjectId: boolean

    Force server to assign _id values instead of driver

    -
    heartbeatFrequencyMS: number
    +
    heartbeatFrequencyMS: number

    heartbeatFrequencyMS controls when the driver checks the state of the MongoDB deployment. Specify the interval (in milliseconds) between checks, counted from the end of the previous check until the beginning of the next one.

    -
    hints?: number
    hosts: HostAddress[]
    keepAlive: boolean
    +
    hints?: number
    hosts: HostAddress[]
    keepAlive: boolean

    TCP Connection keep alive enabled

    -
    keepAliveInitialDelay: number
    +
    keepAliveInitialDelay: number

    The number of milliseconds to wait before initiating keepAlive on the TCP socket

    key?: string | Buffer | (Buffer | KeyObject)[]

    Private keys in PEM format. PEM allows the option of private keys @@ -81,21 +81,21 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    localThresholdMS: number
    +
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    localThresholdMS: number

    The size (in milliseconds) of the latency window for selecting among multiple suitable MongoDB instances.

    -
    logger: Logger
    +
    logger: Logger

    Custom logger object

    -
    lookup?: LookupFunction
    maxIdleTimeMS: number
    +
    lookup?: LookupFunction
    maxIdleTimeMS: number

    The maximum number of milliseconds that a connection can remain idle in the pool before being removed and closed.

    -
    maxPoolSize: number
    +
    maxPoolSize: number

    The maximum number of connections in the connection pool.

    -
    metadata: ClientMetadata
    minDHSize?: number
    minHeartbeatFrequencyMS: number
    +
    metadata: ClientMetadata
    minDHSize?: number
    minHeartbeatFrequencyMS: number

    Sets the minimum heartbeat frequency. In the event that the driver has to frequently re-check a server's availability, it will wait at least this long since the previous check to avoid wasted effort.

    -
    minPoolSize: number
    +
    minPoolSize: number

    The minimum number of connections in the connection pool.

    -
    monitorCommands: boolean
    +
    monitorCommands: boolean

    Enable command monitoring for this client

    -
    noDelay: boolean
    +
    noDelay: boolean

    TCP Connection no delay

    passphrase?: string

    Shared passphrase used for a single private key and/or a PFX.

    @@ -108,22 +108,22 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted PFX will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    pkFactory: PkFactory
    +
    pkFactory: PkFactory

    A primary key factory function for generation of custom _id keys

    -
    promiseLibrary: any
    +
    promiseLibrary: any

    A Promise library class the application wishes to use such as Bluebird, must be ES6 compatible

    -
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    raw: boolean
    +
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    raw: boolean

    Return document results as raw BSON buffers

    -
    readConcern: ReadConcern
    readPreference: ReadPreference
    rejectUnauthorized?: boolean
    +
    readConcern: ReadConcern
    readPreference: ReadPreference
    rejectUnauthorized?: boolean

    If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

    default

    true

    -
    replicaSet: string
    +
    replicaSet: string

    Specifies the name of the replica set, if the mongod is a member of a replica set.

    -
    retryReads: boolean
    +
    retryReads: boolean

    Enables retryable reads.

    -
    retryWrites: boolean
    +
    retryWrites: boolean

    Enable retryable writes.

    secureContext?: SecureContext

    An optional TLS context object from tls.createSecureContext()

    @@ -137,17 +137,17 @@ any TLS protocol version up to TLSv1.3. It is not recommended to use TLS versions less than 1.2, but it may be required for interoperability. Default: none, see minVersion.

    -
    serverApi: ServerApi
    serverSelectionTimeoutMS: number
    +
    serverApi: ServerApi
    serverSelectionTimeoutMS: number

    Specifies how long (in milliseconds) to block for server selection before throwing an exception.

    -
    servername?: string
    session?: Buffer
    socketTimeoutMS: number
    +
    servername?: string
    session?: Buffer
    socketTimeoutMS: number

    The time in milliseconds to attempt a send or receive on a socket before the attempt times out.

    -
    srvHost?: string
    srvMaxHosts: number
    +
    srvHost?: string
    srvMaxHosts: number

    The maximum number of hosts to connect to when using an srv connection string, a setting of 0 means unlimited hosts

    -
    srvServiceName: string
    +
    srvServiceName: string

    Modifies the srv URI to look like:

    _{srvServiceName}._tcp.{hostname}.{domainname}

    Querying this DNS URI is expected to respond with SRV records

    -
    tls: boolean
    +
    tls: boolean
    tlsAllowInvalidCertificates: boolean
    +
    tlsAllowInvalidCertificates: boolean

    Bypasses validation of the certificates presented by the mongod/mongos instance

    -
    tlsAllowInvalidHostnames: boolean
    +
    tlsAllowInvalidHostnames: boolean

    Disables hostname validation of the certificate presented by the mongod/mongos instance.

    -
    tlsInsecure: boolean
    +
    tlsInsecure: boolean

    Disables various certificate validations.

    -
    waitQueueTimeoutMS: number
    +
    waitQueueTimeoutMS: number

    The maximum time in milliseconds that a thread can wait for a connection to become available.

    -
    writeConcern: WriteConcern
    zlibCompressionLevel: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 8
    +
    writeConcern: WriteConcern
    zlibCompressionLevel: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 8

    An integer that specifies the compression level if using zlib for network compression.

    -

    Methods

    • toURI(): string

    Methods

    • toURI(): string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/MonitorOptions.html b/docs/Next/interfaces/MonitorOptions.html index 5c164f9733f..aa38fda6cd0 100644 --- a/docs/Next/interfaces/MonitorOptions.html +++ b/docs/Next/interfaces/MonitorOptions.html @@ -1,11 +1,11 @@ MonitorOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface MonitorOptions

    Hierarchy

    Index

    Properties

    ALPNProtocols?: Uint8Array | string[] | Uint8Array[]

    An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

    -
    autoEncrypter?: AutoEncrypter
    ca?: string | Buffer | (string | Buffer)[]
    +
    autoEncrypter?: AutoEncrypter
    ca?: string | Buffer | (string | Buffer)[]

    Optionally override the trusted CA certificates. Default is to trust the well-known CAs curated by Mozilla. Mozilla's CAs are completely replaced when CAs are explicitly specified using this option.

    -
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]
    +
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]

    Cert chains in PEM format. One cert chain should be provided per private key. Each cert chain should consist of the PEM formatted certificate for a provided private key, followed by the PEM @@ -35,7 +35,7 @@ information, see modifying the default cipher suite. Permitted ciphers can be obtained via tls.getCiphers(). Cipher names must be uppercased in order for OpenSSL to accept them.

    -
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]
    +
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]

    PEM formatted CRLs (Certificate Revocation Lists).

    ecdhCurve?: string

    A string describing a named curve or a colon separated list of curve @@ -45,7 +45,7 @@ recent releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve. Default: tls.DEFAULT_ECDH_CURVE.

    -
    family?: number
    heartbeatFrequencyMS: number
    hints?: number
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]
    +
    family?: number
    heartbeatFrequencyMS: number
    hints?: number
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]

    Private keys in PEM format. PEM allows the option of private keys being encrypted. Encrypted keys will be decrypted with options.passphrase. Multiple keys using different algorithms can be @@ -54,7 +54,7 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    metadata: ClientMetadata
    minDHSize?: number
    minHeartbeatFrequencyMS: number
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string
    +
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    metadata: ClientMetadata
    minDHSize?: number
    minHeartbeatFrequencyMS: number
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string

    Shared passphrase used for a single private key and/or a PFX.

    pfx?: string | Buffer | (string | Buffer | PxfObject)[]

    PFX or PKCS12 encoded private key and certificate chain. pfx is an @@ -65,7 +65,7 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted PFX will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    rejectUnauthorized?: boolean
    +
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    rejectUnauthorized?: boolean

    If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

    @@ -82,4 +82,4 @@ any TLS protocol version up to TLSv1.3. It is not recommended to use TLS versions less than 1.2, but it may be required for interoperability. Default: none, see minVersion.

    -
    serverApi?: ServerApi
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    tls: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    serverApi?: ServerApi
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    tls: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/OperationOptions.html b/docs/Next/interfaces/OperationOptions.html index 41f833f141c..02f6a4822c9 100644 --- a/docs/Next/interfaces/OperationOptions.html +++ b/docs/Next/interfaces/OperationOptions.html @@ -2,24 +2,24 @@

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    enableUtf8Validation?: boolean
    +
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    willRetryWrites?: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/PipeOptions.html b/docs/Next/interfaces/PipeOptions.html index 737d8e9e13b..c596bdc4ec3 100644 --- a/docs/Next/interfaces/PipeOptions.html +++ b/docs/Next/interfaces/PipeOptions.html @@ -1 +1 @@ -PipeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface PipeOptions

    Hierarchy

    • PipeOptions

    Index

    Properties

    Properties

    end?: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +PipeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface PipeOptions

    Hierarchy

    • PipeOptions

    Index

    Properties

    Properties

    end?: boolean

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/PkFactory.html b/docs/Next/interfaces/PkFactory.html index 031b7705aaa..de58d040b67 100644 --- a/docs/Next/interfaces/PkFactory.html +++ b/docs/Next/interfaces/PkFactory.html @@ -1 +1 @@ -PkFactory | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface PkFactory

    Hierarchy

    • PkFactory

    Index

    Methods

    Methods

    • createPk(): any

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +PkFactory | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface PkFactory

    Hierarchy

    • PkFactory

    Index

    Methods

    Methods

    • createPk(): any

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ProxyOptions.html b/docs/Next/interfaces/ProxyOptions.html index 8c635806bca..14cdb604ac0 100644 --- a/docs/Next/interfaces/ProxyOptions.html +++ b/docs/Next/interfaces/ProxyOptions.html @@ -1 +1 @@ -ProxyOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ProxyOptions

    Hierarchy

    Index

    Properties

    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ProxyOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ProxyOptions

    Hierarchy

    Index

    Properties

    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ReadPreferenceFromOptions.html b/docs/Next/interfaces/ReadPreferenceFromOptions.html index 88744abac67..850aa63abcb 100644 --- a/docs/Next/interfaces/ReadPreferenceFromOptions.html +++ b/docs/Next/interfaces/ReadPreferenceFromOptions.html @@ -1,5 +1,5 @@ -ReadPreferenceFromOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReadPreferenceFromOptions

    Hierarchy

    Index

    Properties

    hedge?: HedgeOptions
    +ReadPreferenceFromOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReadPreferenceFromOptions

    Hierarchy

    Index

    Properties

    hedge?: HedgeOptions

    Server mode in which the same query is dispatched in parallel to multiple replica set members.

    -
    maxStalenessSeconds?: number
    +
    maxStalenessSeconds?: number

    Max secondary read staleness in seconds, Minimum value is 90 seconds.

    -
    readPreference?: ReadPreferenceLike | { maxStalenessSeconds?: number; mode?: ReadPreferenceMode; preference?: ReadPreferenceMode; tags?: TagSet[] }
    readPreferenceTags?: TagSet[]
    session?: ClientSession

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    readPreference?: ReadPreferenceLike | { maxStalenessSeconds?: number; mode?: ReadPreferenceMode; preference?: ReadPreferenceMode; tags?: TagSet[] }
    readPreferenceTags?: TagSet[]
    session?: ClientSession

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ReadPreferenceLikeOptions.html b/docs/Next/interfaces/ReadPreferenceLikeOptions.html index 9abbf98256c..901c345a82c 100644 --- a/docs/Next/interfaces/ReadPreferenceLikeOptions.html +++ b/docs/Next/interfaces/ReadPreferenceLikeOptions.html @@ -1,5 +1,5 @@ -ReadPreferenceLikeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReadPreferenceLikeOptions

    Hierarchy

    Index

    Properties

    hedge?: HedgeOptions
    +ReadPreferenceLikeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReadPreferenceLikeOptions

    Hierarchy

    Index

    Properties

    hedge?: HedgeOptions

    Server mode in which the same query is dispatched in parallel to multiple replica set members.

    -
    maxStalenessSeconds?: number
    +
    maxStalenessSeconds?: number

    Max secondary read staleness in seconds, Minimum value is 90 seconds.

    -
    readPreference?: ReadPreferenceLike | { maxStalenessSeconds?: number; mode?: ReadPreferenceMode; preference?: ReadPreferenceMode; tags?: TagSet[] }

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    readPreference?: ReadPreferenceLike | { maxStalenessSeconds?: number; mode?: ReadPreferenceMode; preference?: ReadPreferenceMode; tags?: TagSet[] }

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ReadPreferenceOptions.html b/docs/Next/interfaces/ReadPreferenceOptions.html index f5339362c7d..34702836c1b 100644 --- a/docs/Next/interfaces/ReadPreferenceOptions.html +++ b/docs/Next/interfaces/ReadPreferenceOptions.html @@ -1,5 +1,5 @@ -ReadPreferenceOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReadPreferenceOptions

    Hierarchy

    Index

    Properties

    hedge?: HedgeOptions
    +ReadPreferenceOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReadPreferenceOptions

    Hierarchy

    Index

    Properties

    hedge?: HedgeOptions

    Server mode in which the same query is dispatched in parallel to multiple replica set members.

    -
    maxStalenessSeconds?: number
    +
    maxStalenessSeconds?: number

    Max secondary read staleness in seconds, Minimum value is 90 seconds.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/RenameOptions.html b/docs/Next/interfaces/RenameOptions.html index aca112ab29e..5a6c4cbd1ac 100644 --- a/docs/Next/interfaces/RenameOptions.html +++ b/docs/Next/interfaces/RenameOptions.html @@ -1,42 +1,42 @@ -RenameOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface RenameOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +RenameOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface RenameOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    dropTarget?: boolean
    +
    dbName?: string
    dropTarget?: boolean

    Drop the target name collection if it previously exists.

    -
    enableUtf8Validation?: boolean
    +
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    new_collection?: boolean
    +
    maxTimeMS?: number
    new_collection?: boolean

    Unclear

    -
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ReplaceOneModel.html b/docs/Next/interfaces/ReplaceOneModel.html index be372e47618..a26e85d64ca 100644 --- a/docs/Next/interfaces/ReplaceOneModel.html +++ b/docs/Next/interfaces/ReplaceOneModel.html @@ -1,11 +1,11 @@ -ReplaceOneModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReplaceOneModel<TSchema>

    Type parameters

    Hierarchy

    • ReplaceOneModel

    Index

    Properties

    collation?: CollationOptions
    +ReplaceOneModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReplaceOneModel<TSchema>

    Type parameters

    Hierarchy

    • ReplaceOneModel

    Index

    Properties

    collation?: CollationOptions

    Specifies a collation.

    -
    filter: Filter<TSchema>
    +
    filter: Filter<TSchema>

    The filter to limit the replaced document.

    -
    hint?: Hint
    +
    hint?: Hint

    The index to use. If specified, then the query system will only consider plans using the hinted index.

    -
    replacement: WithoutId<TSchema>
    +
    replacement: WithoutId<TSchema>

    The document with which to replace the matched document.

    -
    upsert?: boolean
    +
    upsert?: boolean

    When true, creates a new document if no document matches the query.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ReplaceOptions.html b/docs/Next/interfaces/ReplaceOptions.html index 4015f82e22b..ae1ccc5f1e8 100644 --- a/docs/Next/interfaces/ReplaceOptions.html +++ b/docs/Next/interfaces/ReplaceOptions.html @@ -1,46 +1,46 @@ -ReplaceOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReplaceOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +ReplaceOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ReplaceOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    If true, allows the write to opt-out of document level validation

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specifies a collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: string | Document
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: string | Document

    Specify that the update query should only consider plans using the hinted index

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    let?: Document
    +
    let?: Document

    Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0).

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    upsert?: boolean
    +
    upsert?: boolean

    When true, creates a new document if no document matches the query

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ResumeOptions.html b/docs/Next/interfaces/ResumeOptions.html index 4c23836445a..c9fa1fb180d 100644 --- a/docs/Next/interfaces/ResumeOptions.html +++ b/docs/Next/interfaces/ResumeOptions.html @@ -1 +1 @@ -ResumeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ResumeOptions

    Hierarchy

    • ResumeOptions

    Index

    Properties

    batchSize?: number
    collation?: CollationOptions
    maxAwaitTimeMS?: number
    readPreference?: ReadPreference
    startAtOperationTime?: Timestamp

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ResumeOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ResumeOptions

    Hierarchy

    • ResumeOptions

    Index

    Properties

    batchSize?: number
    collation?: CollationOptions
    maxAwaitTimeMS?: number
    readPreference?: ReadPreference
    startAtOperationTime?: Timestamp

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/RoleSpecification.html b/docs/Next/interfaces/RoleSpecification.html index c7d9eaab4c1..156074575ac 100644 --- a/docs/Next/interfaces/RoleSpecification.html +++ b/docs/Next/interfaces/RoleSpecification.html @@ -1,6 +1,6 @@ -RoleSpecification | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface RoleSpecification

    Hierarchy

    • RoleSpecification

    Index

    Properties

    Properties

    db: string
    +RoleSpecification | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface RoleSpecification

    Hierarchy

    • RoleSpecification

    Index

    Properties

    Properties

    db: string

    The database this user's role should effect.

    -
    role: string
    +
    role: string

    A role grants privileges to perform sets of actions on defined resources. A given role applies to the database on which it is defined and can grant access down to a collection level of granularity.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/RootFilterOperators.html b/docs/Next/interfaces/RootFilterOperators.html index f1ca241ac8f..26cd86166fc 100644 --- a/docs/Next/interfaces/RootFilterOperators.html +++ b/docs/Next/interfaces/RootFilterOperators.html @@ -1 +1 @@ -RootFilterOperators | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface RootFilterOperators<TSchema>

    Type parameters

    • TSchema

    Hierarchy

    Index

    Properties

    $and?: Filter<TSchema>[]
    $comment?: string | Document
    $nor?: Filter<TSchema>[]
    $or?: Filter<TSchema>[]
    $text?: { $caseSensitive?: boolean; $diacriticSensitive?: boolean; $language?: string; $search: string }

    Type declaration

    • Optional $caseSensitive?: boolean
    • Optional $diacriticSensitive?: boolean
    • Optional $language?: string
    • $search: string
    $where?: string | ((this: TSchema) => boolean)

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +RootFilterOperators | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface RootFilterOperators<TSchema>

    Type parameters

    • TSchema

    Hierarchy

    Index

    Properties

    $and?: Filter<TSchema>[]
    $comment?: string | Document
    $nor?: Filter<TSchema>[]
    $or?: Filter<TSchema>[]
    $text?: { $caseSensitive?: boolean; $diacriticSensitive?: boolean; $language?: string; $search: string }

    Type declaration

    • Optional $caseSensitive?: boolean
    • Optional $diacriticSensitive?: boolean
    • Optional $language?: string
    • $search: string
    $where?: string | ((this: TSchema) => boolean)

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/SelectServerOptions.html b/docs/Next/interfaces/SelectServerOptions.html index 5ae0e65c6b4..f7e6d2c3cda 100644 --- a/docs/Next/interfaces/SelectServerOptions.html +++ b/docs/Next/interfaces/SelectServerOptions.html @@ -1,3 +1,3 @@ -SelectServerOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface SelectServerOptions

    Hierarchy

    • SelectServerOptions

    Index

    Properties

    readPreference?: ReadPreferenceLike
    serverSelectionTimeoutMS?: number
    +SelectServerOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface SelectServerOptions

    Hierarchy

    • SelectServerOptions

    Index

    Properties

    readPreference?: ReadPreferenceLike
    serverSelectionTimeoutMS?: number

    How long to block for server selection before throwing an error

    -
    session?: ClientSession

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +
    session?: ClientSession

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ServerApi.html b/docs/Next/interfaces/ServerApi.html index 2e92c73b4de..65c5d42f05f 100644 --- a/docs/Next/interfaces/ServerApi.html +++ b/docs/Next/interfaces/ServerApi.html @@ -1 +1 @@ -ServerApi | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ServerApi

    Hierarchy

    • ServerApi

    Index

    Properties

    deprecationErrors?: boolean
    strict?: boolean
    version: "1"

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +ServerApi | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ServerApi

    Hierarchy

    • ServerApi

    Index

    Properties

    deprecationErrors?: boolean
    strict?: boolean
    version: "1"

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/StreamDescriptionOptions.html b/docs/Next/interfaces/StreamDescriptionOptions.html index 9ca97e79fa8..00c4350609e 100644 --- a/docs/Next/interfaces/StreamDescriptionOptions.html +++ b/docs/Next/interfaces/StreamDescriptionOptions.html @@ -1 +1 @@ -StreamDescriptionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface StreamDescriptionOptions

    Hierarchy

    Index

    Properties

    compressors?: ("none" | "snappy" | "zlib")[]
    loadBalanced: boolean
    logicalSessionTimeoutMinutes?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +StreamDescriptionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface StreamDescriptionOptions

    Hierarchy

    Index

    Properties

    compressors?: ("none" | "snappy" | "zlib")[]
    loadBalanced: boolean
    logicalSessionTimeoutMinutes?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/TimeSeriesCollectionOptions.html b/docs/Next/interfaces/TimeSeriesCollectionOptions.html index a8c26a8e80f..678bff7ef1b 100644 --- a/docs/Next/interfaces/TimeSeriesCollectionOptions.html +++ b/docs/Next/interfaces/TimeSeriesCollectionOptions.html @@ -1,2 +1,2 @@ TimeSeriesCollectionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface TimeSeriesCollectionOptions

    Hierarchy

    Index

    Properties

    granularity?: string
    metaField?: string
    timeField: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +

    Hierarchy

    Index

    Properties

    granularity?: string
    metaField?: string
    timeField: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/TopologyDescriptionOptions.html b/docs/Next/interfaces/TopologyDescriptionOptions.html index b733b93fa92..380e7a33711 100644 --- a/docs/Next/interfaces/TopologyDescriptionOptions.html +++ b/docs/Next/interfaces/TopologyDescriptionOptions.html @@ -1 +1 @@ -TopologyDescriptionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface TopologyDescriptionOptions

    Hierarchy

    • TopologyDescriptionOptions

    Index

    Properties

    heartbeatFrequencyMS?: number
    localThresholdMS?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +TopologyDescriptionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface TopologyDescriptionOptions

    Hierarchy

    • TopologyDescriptionOptions

    Index

    Properties

    heartbeatFrequencyMS?: number
    localThresholdMS?: number

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/TopologyOptions.html b/docs/Next/interfaces/TopologyOptions.html index ab02bdb5e1f..4409d4daea7 100644 --- a/docs/Next/interfaces/TopologyOptions.html +++ b/docs/Next/interfaces/TopologyOptions.html @@ -1,13 +1,13 @@ TopologyOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface TopologyOptions

    Hierarchy

    Index

    Properties

    ALPNProtocols?: Uint8Array | string[] | Uint8Array[]

    An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

    -
    autoEncrypter?: AutoEncrypter
    bsonRegExp?: boolean
    +
    autoEncrypter?: AutoEncrypter
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    ca?: string | Buffer | (string | Buffer)[]

    Optionally override the trusted CA certificates. Default is to trust the well-known CAs curated by Mozilla. Mozilla's CAs are completely replaced when CAs are explicitly specified using this option.

    -
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]
    +
    cancellationToken?: CancellationToken
    cert?: string | Buffer | (string | Buffer)[]

    Cert chains in PEM format. One cert chain should be provided per private key. Each cert chain should consist of the PEM formatted certificate for a provided private key, followed by the PEM @@ -39,9 +39,9 @@ information, see modifying the default cipher suite. Permitted ciphers can be obtained via tls.getCiphers(). Cipher names must be uppercased in order for OpenSSL to accept them.

    -
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]
    +
    compressors?: ("none" | "snappy" | "zlib")[]
    connectTimeoutMS: number
    credentials?: MongoCredentials
    crl?: string | Buffer | (string | Buffer)[]

    PEM formatted CRLs (Certificate Revocation Lists).

    -
    directConnection: boolean
    +
    directConnection: boolean

    Indicates that a client should directly connect to a node without attempting to discover its topology type

    ecdhCurve?: string

    A string describing a named curve or a colon separated list of curve @@ -51,13 +51,13 @@ recent releases, openssl ecparam -list_curves will also display the name and description of each available elliptic curve. Default: tls.DEFAULT_ECDH_CURVE.

    -
    enableUtf8Validation?: boolean
    +
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    family?: number
    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    heartbeatFrequencyMS: number
    hints?: number
    hosts: HostAddress[]
    ignoreUndefined?: boolean
    +
    heartbeatFrequencyMS: number
    hints?: number
    hosts: HostAddress[]
    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]
    +
    keepAlive?: boolean
    keepAliveInitialDelay?: number
    key?: string | Buffer | (Buffer | KeyObject)[]

    Private keys in PEM format. PEM allows the option of private keys being encrypted. Encrypted keys will be decrypted with options.passphrase. Multiple keys using different algorithms can be @@ -66,13 +66,13 @@ passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

    -
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    maxIdleTimeMS: number
    +
    loadBalanced: boolean
    localAddress?: string
    localPort?: number
    logicalSessionTimeoutMinutes?: number
    lookup?: LookupFunction
    maxIdleTimeMS: number

    The maximum amount of time a connection should remain idle in the connection pool before being marked idle.

    -
    maxPoolSize: number
    +
    maxPoolSize: number

    The maximum number of connections that may be associated with a pool at a given time. This includes in use and available connections.

    -
    metadata: ClientMetadata
    minDHSize?: number
    minHeartbeatFrequencyMS: number
    minPoolSize: number
    +
    metadata: ClientMetadata
    minDHSize?: number
    minHeartbeatFrequencyMS: number
    minPoolSize: number

    The minimum number of connections that MUST exist at any moment in a single connection pool.

    -
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string
    +
    monitorCommands: boolean
    noDelay?: boolean
    passphrase?: string

    Shared passphrase used for a single private key and/or a PFX.

    pfx?: string | Buffer | (string | Buffer | PxfObject)[]

    PFX or PKCS12 encoded private key and certificate chain. pfx is an @@ -89,16 +89,16 @@

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    raw?: boolean
    +
    proxyHost?: string
    proxyPassword?: string
    proxyPort?: number
    proxyUsername?: string
    raw?: boolean

    Return BSON filled buffers from operations

    rejectUnauthorized?: boolean

    If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

    default

    true

    -
    replicaSet?: string
    +
    replicaSet?: string

    The name of the replica set to connect to

    -
    retryReads: boolean
    retryWrites: boolean
    secureContext?: SecureContext
    +
    retryReads: boolean
    retryWrites: boolean
    secureContext?: SecureContext

    An optional TLS context object from tls.createSecureContext()

    secureProtocol?: string

    Legacy mechanism to select the TLS protocol version to use, it does @@ -112,10 +112,10 @@ interoperability. Default: none, see minVersion.

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    serverApi?: ServerApi
    +
    serverApi?: ServerApi

    MongoDB server API version

    -
    serverSelectionTimeoutMS: number
    +
    serverSelectionTimeoutMS: number

    How long to block for server selection before throwing an error

    -
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    srvHost?: string
    srvMaxHosts: number
    srvServiceName: string
    tls: boolean
    waitQueueTimeoutMS: number
    +
    servername?: string
    session?: Buffer
    socketTimeoutMS?: number
    srvHost?: string
    srvMaxHosts: number
    srvServiceName: string
    tls: boolean
    waitQueueTimeoutMS: number

    The maximum amount of time operation execution should wait for a connection to become available. The default is 0 which means there is no limit.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/TopologyVersion.html b/docs/Next/interfaces/TopologyVersion.html index e5f857179f7..d924d59f49a 100644 --- a/docs/Next/interfaces/TopologyVersion.html +++ b/docs/Next/interfaces/TopologyVersion.html @@ -1 +1 @@ -TopologyVersion | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface TopologyVersion

    Hierarchy

    • TopologyVersion

    Index

    Properties

    counter: Long
    processId: ObjectId

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +TopologyVersion | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface TopologyVersion

    Hierarchy

    • TopologyVersion

    Index

    Properties

    counter: Long
    processId: ObjectId

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/TransactionOptions.html b/docs/Next/interfaces/TransactionOptions.html index 929afa4c15e..7a54809b144 100644 --- a/docs/Next/interfaces/TransactionOptions.html +++ b/docs/Next/interfaces/TransactionOptions.html @@ -1,40 +1,40 @@ TransactionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface TransactionOptions

    Configuration options for a transaction.

    -

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean
    +

    Hierarchy

    Index

    Properties

    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxCommitTimeMS?: number
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxCommitTimeMS?: number
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    A default read concern for commands in this transaction

    -
    readPreference?: ReadPreference
    +
    readPreference?: ReadPreference

    A default read preference for commands in this transaction

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    writeConcern?: WriteConcern
    +
    willRetryWrites?: boolean
    writeConcern?: WriteConcern

    A default writeConcern for commands in this transaction

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/UpdateDescription.html b/docs/Next/interfaces/UpdateDescription.html index 1dd40da72d7..e9df3a1cd06 100644 --- a/docs/Next/interfaces/UpdateDescription.html +++ b/docs/Next/interfaces/UpdateDescription.html @@ -1,6 +1,6 @@ -UpdateDescription | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateDescription<TSchema>

    Type parameters

    Hierarchy

    • UpdateDescription

    Index

    Properties

    removedFields: string[]
    +UpdateDescription | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateDescription<TSchema>

    Type parameters

    Hierarchy

    • UpdateDescription

    Index

    Properties

    removedFields: string[]

    An array of field names that were removed from the document.

    -
    updatedFields: Partial<TSchema>
    +
    updatedFields: Partial<TSchema>

    A document containing key:value pairs of names of the fields that were changed, and the new value for those fields.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/UpdateManyModel.html b/docs/Next/interfaces/UpdateManyModel.html index 4d19f136a24..a1690737672 100644 --- a/docs/Next/interfaces/UpdateManyModel.html +++ b/docs/Next/interfaces/UpdateManyModel.html @@ -1,13 +1,13 @@ -UpdateManyModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateManyModel<TSchema>

    Type parameters

    Hierarchy

    • UpdateManyModel

    Index

    Properties

    arrayFilters?: Document[]
    +UpdateManyModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateManyModel<TSchema>

    Type parameters

    Hierarchy

    • UpdateManyModel

    Index

    Properties

    arrayFilters?: Document[]

    A set of filters specifying to which array elements an update should apply.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specifies a collation.

    -
    filter: Filter<TSchema>
    +
    filter: Filter<TSchema>

    The filter to limit the updated documents.

    -
    hint?: Hint
    +
    hint?: Hint

    The index to use. If specified, then the query system will only consider plans using the hinted index.

    -
    update: UpdateFilter<TSchema> | UpdateFilter<TSchema>[]
    +
    update: UpdateFilter<TSchema> | UpdateFilter<TSchema>[]

    A document or pipeline containing update operators.

    -
    upsert?: boolean
    +
    upsert?: boolean

    When true, creates a new document if no document matches the query.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/UpdateOneModel.html b/docs/Next/interfaces/UpdateOneModel.html index d335e465526..5afb7195453 100644 --- a/docs/Next/interfaces/UpdateOneModel.html +++ b/docs/Next/interfaces/UpdateOneModel.html @@ -1,13 +1,13 @@ -UpdateOneModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateOneModel<TSchema>

    Type parameters

    Hierarchy

    • UpdateOneModel

    Index

    Properties

    arrayFilters?: Document[]
    +UpdateOneModel | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateOneModel<TSchema>

    Type parameters

    Hierarchy

    • UpdateOneModel

    Index

    Properties

    arrayFilters?: Document[]

    A set of filters specifying to which array elements an update should apply.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specifies a collation.

    -
    filter: Filter<TSchema>
    +
    filter: Filter<TSchema>

    The filter to limit the updated documents.

    -
    hint?: Hint
    +
    hint?: Hint

    The index to use. If specified, then the query system will only consider plans using the hinted index.

    -
    update: UpdateFilter<TSchema> | UpdateFilter<TSchema>[]
    +
    update: UpdateFilter<TSchema> | UpdateFilter<TSchema>[]

    A document or pipeline containing update operators.

    -
    upsert?: boolean
    +
    upsert?: boolean

    When true, creates a new document if no document matches the query.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/UpdateOptions.html b/docs/Next/interfaces/UpdateOptions.html index 50173ba58e9..b3c92bd06e2 100644 --- a/docs/Next/interfaces/UpdateOptions.html +++ b/docs/Next/interfaces/UpdateOptions.html @@ -1,48 +1,48 @@ -UpdateOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateOptions

    Hierarchy

    Index

    Properties

    arrayFilters?: Document[]
    +UpdateOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateOptions

    Hierarchy

    Index

    Properties

    arrayFilters?: Document[]

    A set of filters specifying to which array elements an update should apply

    -
    authdb?: string
    bsonRegExp?: boolean
    +
    authdb?: string
    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    -
    bypassDocumentValidation?: boolean
    +
    bypassDocumentValidation?: boolean

    If true, allows the write to opt-out of document level validation

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specifies a collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    -
    hint?: string | Document
    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    hint?: string | Document

    Specify that the update query should only consider plans using the hinted index

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    let?: Document
    +
    let?: Document

    Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0).

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    upsert?: boolean
    +
    upsert?: boolean

    When true, creates a new document if no document matches the query

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/UpdateResult.html b/docs/Next/interfaces/UpdateResult.html index 4ccef4dc86a..91307c8971f 100644 --- a/docs/Next/interfaces/UpdateResult.html +++ b/docs/Next/interfaces/UpdateResult.html @@ -1,11 +1,11 @@ -UpdateResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateResult

    Hierarchy

    • UpdateResult

    Index

    Properties

    acknowledged: boolean
    +UpdateResult | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateResult

    Hierarchy

    • UpdateResult

    Index

    Properties

    acknowledged: boolean

    Indicates whether this write result was acknowledged. If not, then all other members of this result will be undefined

    -
    matchedCount: number
    +
    matchedCount: number

    The number of documents that matched the filter

    -
    modifiedCount: number
    +
    modifiedCount: number

    The number of documents that were modified

    -
    upsertedCount: number
    +
    upsertedCount: number

    The number of documents that were upserted

    -
    upsertedId: ObjectId
    +
    upsertedId: ObjectId

    The identifier of the inserted document if an upsert took place

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/UpdateStatement.html b/docs/Next/interfaces/UpdateStatement.html index a986bc793a4..450dd27d5f7 100644 --- a/docs/Next/interfaces/UpdateStatement.html +++ b/docs/Next/interfaces/UpdateStatement.html @@ -1,15 +1,15 @@ -UpdateStatement | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateStatement

    Hierarchy

    • UpdateStatement

    Index

    Properties

    arrayFilters?: Document[]
    +UpdateStatement | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface UpdateStatement

    Hierarchy

    • UpdateStatement

    Index

    Properties

    arrayFilters?: Document[]

    An array of filter documents that determines which array elements to modify for an update operation on an array field.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Specifies the collation to use for the operation.

    -
    hint?: Hint
    +
    hint?: Hint

    A document or string that specifies the index to use to support the query predicate.

    -
    multi?: boolean
    +
    multi?: boolean

    If true, updates all documents that meet the query criteria.

    -
    +

    The query that matches documents to update.

    -
    +

    The modifications to apply.

    -
    upsert?: boolean
    +
    upsert?: boolean

    If true, perform an insert if no documents match the query.

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/ValidateCollectionOptions.html b/docs/Next/interfaces/ValidateCollectionOptions.html index a77287af3a6..706973cab4c 100644 --- a/docs/Next/interfaces/ValidateCollectionOptions.html +++ b/docs/Next/interfaces/ValidateCollectionOptions.html @@ -1,40 +1,40 @@ -ValidateCollectionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ValidateCollectionOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    background?: boolean
    +ValidateCollectionOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface ValidateCollectionOptions

    Hierarchy

    Index

    Properties

    authdb?: string
    background?: boolean

    Validates a collection in the background, without interrupting read or write traffic (only in MongoDB 4.4+)

    bsonRegExp?: boolean

    return BSON regular expressions as BSONRegExp instances.

    checkKeys?: boolean

    the serializer will check if keys are valid.

    -
    collation?: CollationOptions
    +
    collation?: CollationOptions

    Collation

    -
    comment?: string | Document
    +
    comment?: string | Document

    A user-provided comment to attach to this command

    -
    dbName?: string
    enableUtf8Validation?: boolean
    +
    dbName?: string
    enableUtf8Validation?: boolean

    Enable utf8 validation when deserializing BSON documents. Defaults to true.

    -
    +

    Specifies the verbosity mode for the explain output.

    fieldsAsRaw?: Document

    allow to specify if there what fields we wish to return as unserialized raw buffer.

    -
    fullResponse?: boolean
    deprecated

    This option does nothing

    +
    fullResponse?: boolean
    deprecated

    This option does nothing

    ignoreUndefined?: boolean

    serialize will not emit undefined fields (default:true)

    -
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean
    +
    maxTimeMS?: number
    noResponse?: boolean
    omitReadPreference?: boolean
    promoteBuffers?: boolean

    when deserializing a Binary will return it as a node.js Buffer instance.

    promoteLongs?: boolean

    when deserializing a Long will fit it into a Number if it's smaller than 53 bits

    promoteValues?: boolean

    when deserializing will promote BSON values to their Node.js closest equivalent types.

    -
    raw?: boolean
    +
    raw?: boolean

    Return BSON filled buffers from operations

    -
    readConcern?: ReadConcernLike
    +
    readConcern?: ReadConcernLike

    Specify a read concern and level for the collection. (only MongoDB 3.2 or higher supported)

    -
    readPreference?: ReadPreferenceLike
    +
    readPreference?: ReadPreferenceLike

    The preferred read preference (ReadPreference.primary, ReadPreference.primary_preferred, ReadPreference.secondary, ReadPreference.secondary_preferred, ReadPreference.nearest).

    -
    retryWrites?: boolean
    +
    retryWrites?: boolean

    Should retry failed writes

    serializeFunctions?: boolean

    serialize the javascript functions (default:false).

    -
    session?: ClientSession
    +
    session?: ClientSession

    Specify ClientSession for this command

    -
    willRetryWrites?: boolean
    +
    willRetryWrites?: boolean

    Write Concern as an object

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/WiredTigerData.html b/docs/Next/interfaces/WiredTigerData.html index 23eb674ea49..96f9b353c03 100644 --- a/docs/Next/interfaces/WiredTigerData.html +++ b/docs/Next/interfaces/WiredTigerData.html @@ -1 +1 @@ -WiredTigerData | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WiredTigerData

    Hierarchy

    Index

    Properties

    LSM: { bloom filter false positives: number; bloom filter hits: number; bloom filter misses: number; bloom filter pages evicted from cache: number; bloom filter pages read into cache: number; bloom filters in the LSM tree: number; chunks in the LSM tree: number; highest merge generation in the LSM tree: number; queries that could have benefited from a Bloom filter that did not exist: number; sleep for LSM checkpoint throttle: number; sleep for LSM merge throttle: number; total size of bloom filters: number } & Document
    block-manager: { allocations requiring file extension: number; blocks allocated: number; blocks freed: number; checkpoint size: number; file allocation unit size: number; file bytes available for reuse: number; file magic number: number; file major version number: number; file size in bytes: number; minor version number: number }

    Type declaration

    • allocations requiring file extension: number
    • blocks allocated: number
    • blocks freed: number
    • checkpoint size: number
    • file allocation unit size: number
    • file bytes available for reuse: number
    • file magic number: number
    • file major version number: number
    • file size in bytes: number
    • minor version number: number
    btree: { btree checkpoint generation: number; column-store fixed-size leaf pages: number; column-store internal pages: number; column-store variable-size RLE encoded values: number; column-store variable-size deleted values: number; column-store variable-size leaf pages: number; fixed-record size: number; maximum internal page key size: number; maximum internal page size: number; maximum leaf page key size: number; maximum leaf page size: number; maximum leaf page value size: number; maximum tree depth: number; number of key/value pairs: number; overflow pages: number; pages rewritten by compaction: number; row-store internal pages: number; row-store leaf pages: number } & Document
    cache: { bytes currently in the cache: number; bytes read into cache: number; bytes written from cache: number; checkpoint blocked page eviction: number; data source pages selected for eviction unable to be evicted: number; hazard pointer blocked page eviction: number; in-memory page passed criteria to be split: number; in-memory page splits: number; internal pages evicted: number; internal pages split during eviction: number; leaf pages split during eviction: number; modified pages evicted: number; overflow pages read into cache: number; overflow values cached in memory: number; page split during eviction deepened the tree: number; page written requiring lookaside records: number; pages read into cache: number; pages read into cache requiring lookaside entries: number; pages requested from the cache: number; pages written from cache: number; pages written requiring in-memory restoration: number; tracked dirty bytes in the cache: number; unmodified pages evicted: number } & Document
    cache_walk: { Average difference between current eviction generation when the page was last considered: number; Average on-disk page image size seen: number; Clean pages currently in cache: number; Current eviction generation: number; Dirty pages currently in cache: number; Entries in the root page: number; Internal pages currently in cache: number; Leaf pages currently in cache: number; Maximum difference between current eviction generation when the page was last considered: number; Maximum page size seen: number; Minimum on-disk page image size seen: number; On-disk page image sizes smaller than a single allocation unit: number; Pages created in memory and never written: number; Pages currently queued for eviction: number; Pages that could not be queued for eviction: number; Refs skipped during cache traversal: number; Size of the root page: number; Total number of pages currently in cache: number } & Document
    compression: { compressed pages read: number; compressed pages written: number; page written failed to compress: number; page written was too small to compress: number; raw compression call failed, additional data available: number; raw compression call failed, no additional data available: number; raw compression call succeeded: number } & Document
    cursor: { bulk-loaded cursor-insert calls: number; create calls: number; cursor-insert key and value bytes inserted: number; cursor-remove key bytes removed: number; cursor-update value bytes updated: number; insert calls: number; next calls: number; prev calls: number; remove calls: number; reset calls: number; restarted searches: number; search calls: number; search near calls: number; truncate calls: number; update calls: number }

    Type declaration

    • bulk-loaded cursor-insert calls: number
    • create calls: number
    • cursor-insert key and value bytes inserted: number
    • cursor-remove key bytes removed: number
    • cursor-update value bytes updated: number
    • insert calls: number
    • next calls: number
    • prev calls: number
    • remove calls: number
    • reset calls: number
    • restarted searches: number
    • search calls: number
    • search near calls: number
    • truncate calls: number
    • update calls: number
    reconciliation: { dictionary matches: number; fast-path pages deleted: number; internal page key bytes discarded using suffix compression: number; internal page multi-block writes: number; internal-page overflow keys: number; leaf page key bytes discarded using prefix compression: number; leaf page multi-block writes: number; leaf-page overflow keys: number; maximum blocks required for a page: number; overflow values written: number; page checksum matches: number; page reconciliation calls: number; page reconciliation calls for eviction: number; pages deleted: number } & Document

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +WiredTigerData | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WiredTigerData

    Hierarchy

    Index

    Properties

    LSM: { bloom filter false positives: number; bloom filter hits: number; bloom filter misses: number; bloom filter pages evicted from cache: number; bloom filter pages read into cache: number; bloom filters in the LSM tree: number; chunks in the LSM tree: number; highest merge generation in the LSM tree: number; queries that could have benefited from a Bloom filter that did not exist: number; sleep for LSM checkpoint throttle: number; sleep for LSM merge throttle: number; total size of bloom filters: number } & Document
    block-manager: { allocations requiring file extension: number; blocks allocated: number; blocks freed: number; checkpoint size: number; file allocation unit size: number; file bytes available for reuse: number; file magic number: number; file major version number: number; file size in bytes: number; minor version number: number }

    Type declaration

    • allocations requiring file extension: number
    • blocks allocated: number
    • blocks freed: number
    • checkpoint size: number
    • file allocation unit size: number
    • file bytes available for reuse: number
    • file magic number: number
    • file major version number: number
    • file size in bytes: number
    • minor version number: number
    btree: { btree checkpoint generation: number; column-store fixed-size leaf pages: number; column-store internal pages: number; column-store variable-size RLE encoded values: number; column-store variable-size deleted values: number; column-store variable-size leaf pages: number; fixed-record size: number; maximum internal page key size: number; maximum internal page size: number; maximum leaf page key size: number; maximum leaf page size: number; maximum leaf page value size: number; maximum tree depth: number; number of key/value pairs: number; overflow pages: number; pages rewritten by compaction: number; row-store internal pages: number; row-store leaf pages: number } & Document
    cache: { bytes currently in the cache: number; bytes read into cache: number; bytes written from cache: number; checkpoint blocked page eviction: number; data source pages selected for eviction unable to be evicted: number; hazard pointer blocked page eviction: number; in-memory page passed criteria to be split: number; in-memory page splits: number; internal pages evicted: number; internal pages split during eviction: number; leaf pages split during eviction: number; modified pages evicted: number; overflow pages read into cache: number; overflow values cached in memory: number; page split during eviction deepened the tree: number; page written requiring lookaside records: number; pages read into cache: number; pages read into cache requiring lookaside entries: number; pages requested from the cache: number; pages written from cache: number; pages written requiring in-memory restoration: number; tracked dirty bytes in the cache: number; unmodified pages evicted: number } & Document
    cache_walk: { Average difference between current eviction generation when the page was last considered: number; Average on-disk page image size seen: number; Clean pages currently in cache: number; Current eviction generation: number; Dirty pages currently in cache: number; Entries in the root page: number; Internal pages currently in cache: number; Leaf pages currently in cache: number; Maximum difference between current eviction generation when the page was last considered: number; Maximum page size seen: number; Minimum on-disk page image size seen: number; On-disk page image sizes smaller than a single allocation unit: number; Pages created in memory and never written: number; Pages currently queued for eviction: number; Pages that could not be queued for eviction: number; Refs skipped during cache traversal: number; Size of the root page: number; Total number of pages currently in cache: number } & Document
    compression: { compressed pages read: number; compressed pages written: number; page written failed to compress: number; page written was too small to compress: number; raw compression call failed, additional data available: number; raw compression call failed, no additional data available: number; raw compression call succeeded: number } & Document
    cursor: { bulk-loaded cursor-insert calls: number; create calls: number; cursor-insert key and value bytes inserted: number; cursor-remove key bytes removed: number; cursor-update value bytes updated: number; insert calls: number; next calls: number; prev calls: number; remove calls: number; reset calls: number; restarted searches: number; search calls: number; search near calls: number; truncate calls: number; update calls: number }

    Type declaration

    • bulk-loaded cursor-insert calls: number
    • create calls: number
    • cursor-insert key and value bytes inserted: number
    • cursor-remove key bytes removed: number
    • cursor-update value bytes updated: number
    • insert calls: number
    • next calls: number
    • prev calls: number
    • remove calls: number
    • reset calls: number
    • restarted searches: number
    • search calls: number
    • search near calls: number
    • truncate calls: number
    • update calls: number
    reconciliation: { dictionary matches: number; fast-path pages deleted: number; internal page key bytes discarded using suffix compression: number; internal page multi-block writes: number; internal-page overflow keys: number; leaf page key bytes discarded using prefix compression: number; leaf page multi-block writes: number; leaf-page overflow keys: number; maximum blocks required for a page: number; overflow values written: number; page checksum matches: number; page reconciliation calls: number; page reconciliation calls for eviction: number; pages deleted: number } & Document

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/WriteConcernErrorData.html b/docs/Next/interfaces/WriteConcernErrorData.html index 2024fee178f..c7c822459e6 100644 --- a/docs/Next/interfaces/WriteConcernErrorData.html +++ b/docs/Next/interfaces/WriteConcernErrorData.html @@ -1 +1 @@ -WriteConcernErrorData | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WriteConcernErrorData

    Hierarchy

    • WriteConcernErrorData

    Index

    Properties

    code: number
    errInfo?: Document
    errmsg: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file +WriteConcernErrorData | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WriteConcernErrorData

    Hierarchy

    • WriteConcernErrorData

    Index

    Properties

    code: number
    errInfo?: Document
    errmsg: string

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/WriteConcernOptions.html b/docs/Next/interfaces/WriteConcernOptions.html index 8b26cf1a275..e62642f9c94 100644 --- a/docs/Next/interfaces/WriteConcernOptions.html +++ b/docs/Next/interfaces/WriteConcernOptions.html @@ -1,3 +1,3 @@ -WriteConcernOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WriteConcernOptions

    Hierarchy

    Index

    Properties

    Properties

    +WriteConcernOptions | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WriteConcernOptions

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/interfaces/WriteConcernSettings.html b/docs/Next/interfaces/WriteConcernSettings.html index b8865d7f18a..0109ce6555f 100644 --- a/docs/Next/interfaces/WriteConcernSettings.html +++ b/docs/Next/interfaces/WriteConcernSettings.html @@ -1,13 +1,13 @@ -WriteConcernSettings | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WriteConcernSettings

    Hierarchy

    • WriteConcernSettings

    Index

    Properties

    fsync?: boolean | 1
    +WriteConcernSettings | mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    Interface WriteConcernSettings

    Hierarchy

    • WriteConcernSettings

    Index

    Properties

    fsync?: boolean | 1

    The file sync write concern

    -
    j?: boolean
    +
    j?: boolean

    The journal write concern

    -
    journal?: boolean
    +
    journal?: boolean

    The journal write concern

    -
    w?: W
    +
    w?: W

    The write concern

    -
    wtimeout?: number
    +
    wtimeout?: number

    The write concern timeout

    -
    wtimeoutMS?: number
    +
    wtimeoutMS?: number

    The write concern timeout

    Legend

    • Constructor
    • Property
    • Method
    • Accessor
    • Constructor
    • Property
    • Method
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Static property
    • Static method
    • Private property

    Settings

    Theme

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/Next/modules.html b/docs/Next/modules.html index e794d2eda40..ca625cfe4cf 100644 --- a/docs/Next/modules.html +++ b/docs/Next/modules.html @@ -1,45 +1,45 @@ -mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    mongodb

    Index

    Classes Error

    Classes Event

    Classes Other

    Interfaces

    Type aliases

    Variables

    Type aliases

    AbstractCursorEvents: { close: any }

    Type declaration

    AcceptedFields<TSchema, FieldType, AssignableType>: { readonly [ key in KeysOfAType<TSchema, FieldType>]?: AssignableType }

    Type parameters

    • TSchema

    • FieldType

    • AssignableType

    AddToSetOperators<Type>: { $each?: Flatten<Type>[] }

    Type parameters

    • Type

    Type declaration

    AlternativeType<T>: T extends ReadonlyArray<infer U> ? T | RegExpOrString<U> : RegExpOrString<T>
    +mongodb
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    mongodb

    Index

    Classes Error

    Classes Event

    Classes Other

    Interfaces

    Type aliases

    Variables

    Type aliases

    AbstractCursorEvents: { close: any }

    Type declaration

    AcceptedFields<TSchema, FieldType, AssignableType>: { readonly [ key in KeysOfAType<TSchema, FieldType>]?: AssignableType }

    Type parameters

    • TSchema

    • FieldType

    • AssignableType

    AddToSetOperators<Type>: { $each?: Flatten<Type>[] }

    Type parameters

    • Type

    Type declaration

    AlternativeType<T>: T extends ReadonlyArray<infer U> ? T | RegExpOrString<U> : RegExpOrString<T>

    It is possible to search using alternative types in mongodb e.g. string types can be searched using a regex in mongo array types can be searched using their element type

    -

    Type parameters

    • T

    AnyBulkWriteOperation<TSchema>: { insertOne: InsertOneModel<TSchema> } | { replaceOne: ReplaceOneModel<TSchema> } | { updateOne: UpdateOneModel<TSchema> } | { updateMany: UpdateManyModel<TSchema> } | { deleteOne: DeleteOneModel<TSchema> } | { deleteMany: DeleteManyModel<TSchema> }

    Type parameters

    AnyError: MongoError | Error
    ArrayOperator<Type>: { $each?: Flatten<Type>[]; $position?: number; $slice?: number; $sort?: Sort }

    Type parameters

    • Type

    Type declaration

    • Optional $each?: Flatten<Type>[]
    • Optional $position?: number
    • Optional $slice?: number
    • Optional $sort?: Sort
    AuthMechanism: typeof AuthMechanism[keyof typeof AuthMechanism]
    AutoEncryptionLoggerLevel: typeof AutoEncryptionLoggerLevel[keyof typeof AutoEncryptionLoggerLevel]
    BSONType: typeof BSONType[keyof typeof BSONType]
    BSONTypeAlias: keyof typeof BSONType
    BatchType: typeof BatchType[keyof typeof BatchType]
    BitwiseFilter: number | Binary | ReadonlyArray<number>
    Callback<T>: (error?: AnyError, result?: T) => void

    Type parameters

    • T = any

    Type declaration

      • +

        Type parameters

        • T

    AnyBulkWriteOperation<TSchema>: { insertOne: InsertOneModel<TSchema> } | { replaceOne: ReplaceOneModel<TSchema> } | { updateOne: UpdateOneModel<TSchema> } | { updateMany: UpdateManyModel<TSchema> } | { deleteOne: DeleteOneModel<TSchema> } | { deleteMany: DeleteManyModel<TSchema> }

    Type parameters

    AnyError: MongoError | Error
    ArrayOperator<Type>: { $each?: Flatten<Type>[]; $position?: number; $slice?: number; $sort?: Sort }

    Type parameters

    • Type

    Type declaration

    • Optional $each?: Flatten<Type>[]
    • Optional $position?: number
    • Optional $slice?: number
    • Optional $sort?: Sort
    AuthMechanism: typeof AuthMechanism[keyof typeof AuthMechanism]
    AutoEncryptionLoggerLevel: typeof AutoEncryptionLoggerLevel[keyof typeof AutoEncryptionLoggerLevel]
    BSONType: typeof BSONType[keyof typeof BSONType]
    BSONTypeAlias: keyof typeof BSONType
    BatchType: typeof BatchType[keyof typeof BatchType]
    BitwiseFilter: number | Binary | ReadonlyArray<number>
    Callback<T>: (error?: AnyError, result?: T) => void

    Type parameters

    • T = any

    Type declaration

      • MongoDB Driver style callback

        -

        Parameters

        • Optional error: AnyError
        • Optional result: T

        Returns void

    ChangeStreamEvents<TSchema>: { change: any; end: any; error: any; init: any; more: any; response: any; resumeTokenChanged: any } & AbstractCursorEvents

    Type parameters

    ClientSessionEvents: { ended: any }

    Type declaration

    CommonEvents: "newListener" | "removeListener"
    Compressor: typeof Compressor[CompressorName]
    CompressorName: keyof typeof Compressor

    Type parameters

    • T

    ConnectionEvents: { close: any; clusterTimeReceived: any; commandFailed: any; commandStarted: any; commandSucceeded: any; message: any; pinned: any; unpinned: any }

    Type declaration

    ConnectionPoolEvents: { connectionCheckOutFailed: any; connectionCheckOutStarted: any; connectionCheckedIn: any; connectionCheckedOut: any; connectionClosed: any; connectionCreated: any; connectionPoolCleared: any; connectionPoolClosed: any; connectionPoolCreated: any; connectionReady: any } & Omit<ConnectionEvents, "close" | "message">
    CursorFlag: typeof CURSOR_FLAGS[number]
    DistinctOptions: CommandOperationOptions
    DropCollectionOptions: CommandOperationOptions
    DropDatabaseOptions: CommandOperationOptions
    DropIndexesOptions: CommandOperationOptions
    EnhancedOmit<TRecordOrUnion, KeyUnion>: string extends keyof TRecordOrUnion ? TRecordOrUnion : TRecordOrUnion extends any ? Pick<TRecordOrUnion, Exclude<keyof TRecordOrUnion, KeyUnion>> : never
    +

    Parameters

    • Optional error: AnyError
    • Optional result: T

    Returns void

    ChangeStreamEvents<TSchema>: { change: any; end: any; error: any; init: any; more: any; response: any; resumeTokenChanged: any } & AbstractCursorEvents

    Type parameters

    ClientSessionEvents: { ended: any }

    Type declaration

    CommonEvents: "newListener" | "removeListener"
    Compressor: typeof Compressor[CompressorName]
    CompressorName: keyof typeof Compressor

    Type parameters

    • T

    ConnectionEvents: { close: any; clusterTimeReceived: any; commandFailed: any; commandStarted: any; commandSucceeded: any; message: any; pinned: any; unpinned: any }

    Type declaration

    ConnectionPoolEvents: { connectionCheckOutFailed: any; connectionCheckOutStarted: any; connectionCheckedIn: any; connectionCheckedOut: any; connectionClosed: any; connectionCreated: any; connectionPoolCleared: any; connectionPoolClosed: any; connectionPoolCreated: any; connectionReady: any } & Omit<ConnectionEvents, "close" | "message">
    CursorFlag: typeof CURSOR_FLAGS[number]
    DistinctOptions: CommandOperationOptions
    DropCollectionOptions: CommandOperationOptions
    DropDatabaseOptions: CommandOperationOptions
    DropIndexesOptions: CommandOperationOptions
    EnhancedOmit<TRecordOrUnion, KeyUnion>: string extends keyof TRecordOrUnion ? TRecordOrUnion : TRecordOrUnion extends any ? Pick<TRecordOrUnion, Exclude<keyof TRecordOrUnion, KeyUnion>> : never

    TypeScript Omit (Exclude to be specific) does not work for objects with an "any" indexed type, and breaks discriminated unions @public

    -

    Type parameters

    • TRecordOrUnion

    • KeyUnion

    EventEmitterWithState: { }

    Type declaration

      EventsDescription: Record<string, GenericListener>
      +

      Type parameters

      • TRecordOrUnion

      • KeyUnion

      EventEmitterWithState: { }

      Type declaration

        EventsDescription: Record<string, GenericListener>

        Event description type

        -
        ExplainVerbosity: string
        ExplainVerbosityLike: ExplainVerbosity | boolean
        +
        ExplainVerbosity: string
        ExplainVerbosityLike: ExplainVerbosity | boolean

        For backwards compatibility, true is interpreted as "allPlansExecution" and false as "queryPlanner". Prior to server version 3.6, aggregate() ignores the verbosity parameter and executes in "queryPlanner".

        -
        Filter<TSchema>: Partial<TSchema> | ({ [ Property in Join<NestedPaths<WithId<TSchema>>, ".">]?: Condition<PropertyType<WithId<TSchema>, Property>> } & RootFilterOperators<WithId<TSchema>>)
        +
        Filter<TSchema>: Partial<TSchema> | ({ [ Property in Join<NestedPaths<WithId<TSchema>>, ".">]?: Condition<PropertyType<WithId<TSchema>, Property>> } & RootFilterOperators<WithId<TSchema>>)

        A MongoDB filter can be some portion of the schema or a set of operators @public

        -

        Type parameters

        • TSchema

        FilterOperations<T>: T extends Record<string, any> ? { [ key in keyof T]?: FilterOperators<T[key]> } : FilterOperators<T>

        Type parameters

        • T

        FinalizeFunction<TKey, TValue>: (key: TKey, reducedValue: TValue) => TValue

        Type parameters

        Type declaration

          • (key: TKey, reducedValue: TValue): TValue
          • Parameters

            • key: TKey
            • reducedValue: TValue

            Returns TValue

        Flatten<Type>: Type extends ReadonlyArray<infer Item> ? Item : Type

        Type parameters

        • Type

        GSSAPICanonicalizationValue: typeof GSSAPICanonicalizationValue[keyof typeof GSSAPICanonicalizationValue]
        GenericListener: (...args: any[]) => void

        Type declaration

          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

        GridFSBucketEvents: { index: any }

        Type declaration

        Hint: string | Document
        IndexDirection: -1 | 1 | "2d" | "2dsphere" | "text" | "geoHaystack" | number
        IndexSpecification: OneOrMore<string | [string, IndexDirection] | {} | [string, IndexDirection][] | {}[]>
        InferIdType<TSchema>: TSchema extends { _id: infer IdType } ? Record<any, never> extends IdType ? never : IdType : TSchema extends { _id?: infer IdType } ? unknown extends IdType ? ObjectId : IdType : ObjectId
        +

        Type parameters

        • TSchema

        FilterOperations<T>: T extends Record<string, any> ? { [ key in keyof T]?: FilterOperators<T[key]> } : FilterOperators<T>

        Type parameters

        • T

        FinalizeFunction<TKey, TValue>: (key: TKey, reducedValue: TValue) => TValue

        Type parameters

        Type declaration

          • (key: TKey, reducedValue: TValue): TValue
          • Parameters

            • key: TKey
            • reducedValue: TValue

            Returns TValue

        Flatten<Type>: Type extends ReadonlyArray<infer Item> ? Item : Type

        Type parameters

        • Type

        GSSAPICanonicalizationValue: typeof GSSAPICanonicalizationValue[keyof typeof GSSAPICanonicalizationValue]
        GenericListener: (...args: any[]) => void

        Type declaration

          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

        GridFSBucketEvents: { index: any }

        Type declaration

        Hint: string | Document
        IndexDirection: -1 | 1 | "2d" | "2dsphere" | "text" | "geoHaystack" | number
        IndexSpecification: OneOrMore<string | [string, IndexDirection] | {} | [string, IndexDirection][] | {}[]>
        InferIdType<TSchema>: TSchema extends { _id: infer IdType } ? Record<any, never> extends IdType ? never : IdType : TSchema extends { _id?: infer IdType } ? unknown extends IdType ? ObjectId : IdType : ObjectId

        Given an object shaped type, return the type of the _id field or default to ObjectId @public

        -

        Type parameters

        • TSchema

        IntegerType: number | Int32 | Long
        IsAny<Type, ResultIfAny, ResultIfNotAny>: true extends false & Type ? ResultIfAny : ResultIfNotAny

        Type parameters

        • Type

        • ResultIfAny

        • ResultIfNotAny

        Join<T, D>: T extends [] ? "" : T extends [string | number] ? `${T[0]}` : T extends [string | number, ...infer R] ? `${T[0]}${D}${Join<R, D>}` : string

        Type parameters

        • T: unknown[]

        • D: string

        KeysOfAType<TSchema, Type>: { [ key in keyof TSchema]: NonNullable<TSchema[key]> extends Type ? key : never }[keyof TSchema]

        Type parameters

        • TSchema

        • Type

        KeysOfOtherType<TSchema, Type>: { [ key in keyof TSchema]: NonNullable<TSchema[key]> extends Type ? never : key }[keyof TSchema]

        Type parameters

        • TSchema

        • Type

        LoggerFunction: (message?: any, ...optionalParams: any[]) => void

        Type declaration

          • (message?: any, ...optionalParams: any[]): void
          • Parameters

            • Optional message: any
            • Rest ...optionalParams: any[]

            Returns void

        LoggerLevel: typeof LoggerLevel[keyof typeof LoggerLevel]
        MapFunction<TSchema>: (this: TSchema) => void

        Type parameters

        Type declaration

          • (this: TSchema): void
          • Parameters

            • this: TSchema

            Returns void

        MatchKeysAndValues<TSchema>: Readonly<Partial<TSchema>> & Record<string, any>

        Type parameters

        • TSchema

        MongoClientEvents: Pick<TopologyEvents, typeof MONGO_CLIENT_EVENTS[number]> & { open: any }
        MonitorEvents: { close: any; resetConnectionPool: any; resetServer: any; serverHeartbeatFailed: any; serverHeartbeatStarted: any; serverHeartbeatSucceeded: any } & EventEmitterWithState
        NestedPaths<Type>: Type extends string | number | boolean | Date | RegExp | Buffer | Uint8Array | ((...args: any[]) => any) | { _bsontype: string } ? [] : Type extends ReadonlyArray<infer ArrayType> ? [number, ...NestedPaths<ArrayType>] : Type extends Map<string, any> ? [string] : Type extends object ? { [ Key in Extract<keyof Type, string>]: Type[Key] extends Type ? [Key] : Type extends Type[Key] ? [Key] : Type[Key] extends ReadonlyArray<infer ArrayType> ? Type extends ArrayType ? [Key] : ArrayType extends Type ? [Key] : [Key, ...NestedPaths<Type[Key]>] : [Key, ...NestedPaths<Type[Key]>] }[Extract<keyof Type, string>] : []

        Type parameters

        • Type

        NonObjectIdLikeDocument: { [ key in keyof ObjectIdLike]?: never } & Document
        NotAcceptedFields<TSchema, FieldType>: { readonly [ key in KeysOfOtherType<TSchema, FieldType>]?: never }
        +

        Type parameters

        • TSchema

        IntegerType: number | Int32 | Long
        IsAny<Type, ResultIfAny, ResultIfNotAny>: true extends false & Type ? ResultIfAny : ResultIfNotAny

        Type parameters

        • Type

        • ResultIfAny

        • ResultIfNotAny

        Join<T, D>: T extends [] ? "" : T extends [string | number] ? `${T[0]}` : T extends [string | number, ...infer R] ? `${T[0]}${D}${Join<R, D>}` : string

        Type parameters

        • T: unknown[]

        • D: string

        KeysOfAType<TSchema, Type>: { [ key in keyof TSchema]: NonNullable<TSchema[key]> extends Type ? key : never }[keyof TSchema]

        Type parameters

        • TSchema

        • Type

        KeysOfOtherType<TSchema, Type>: { [ key in keyof TSchema]: NonNullable<TSchema[key]> extends Type ? never : key }[keyof TSchema]

        Type parameters

        • TSchema

        • Type

        LoggerFunction: (message?: any, ...optionalParams: any[]) => void

        Type declaration

          • (message?: any, ...optionalParams: any[]): void
          • Parameters

            • Optional message: any
            • Rest ...optionalParams: any[]

            Returns void

        LoggerLevel: typeof LoggerLevel[keyof typeof LoggerLevel]
        MapFunction<TSchema>: (this: TSchema) => void

        Type parameters

        Type declaration

          • (this: TSchema): void
          • Parameters

            • this: TSchema

            Returns void

        MatchKeysAndValues<TSchema>: Readonly<Partial<TSchema>> & Record<string, any>

        Type parameters

        • TSchema

        MongoClientEvents: Pick<TopologyEvents, typeof MONGO_CLIENT_EVENTS[number]> & { open: any }
        MonitorEvents: { close: any; resetConnectionPool: any; resetServer: any; serverHeartbeatFailed: any; serverHeartbeatStarted: any; serverHeartbeatSucceeded: any } & EventEmitterWithState
        NestedPaths<Type>: Type extends string | number | boolean | Date | RegExp | Buffer | Uint8Array | ((...args: any[]) => any) | { _bsontype: string } ? [] : Type extends ReadonlyArray<infer ArrayType> ? [number, ...NestedPaths<ArrayType>] : Type extends Map<string, any> ? [string] : Type extends object ? { [ Key in Extract<keyof Type, string>]: Type[Key] extends Type ? [Key] : Type extends Type[Key] ? [Key] : Type[Key] extends ReadonlyArray<infer ArrayType> ? Type extends ArrayType ? [Key] : ArrayType extends Type ? [Key] : [Key, ...NestedPaths<Type[Key]>] : [Key, ...NestedPaths<Type[Key]>] }[Extract<keyof Type, string>] : []

        Type parameters

        • Type

        NonObjectIdLikeDocument: { [ key in keyof ObjectIdLike]?: never } & Document
        NotAcceptedFields<TSchema, FieldType>: { readonly [ key in KeysOfOtherType<TSchema, FieldType>]?: never }

        It avoids using fields with not acceptable types @public

        -

        Type parameters

        • TSchema

        • FieldType

        NumericType: IntegerType | Decimal128 | Double
        OneOrMore<T>: T | ReadonlyArray<T>

        Type parameters

        • T

        OnlyFieldsOfType<TSchema, FieldType, AssignableType>: IsAny<TSchema[keyof TSchema], Record<string, FieldType>, AcceptedFields<TSchema, FieldType, AssignableType> & NotAcceptedFields<TSchema, FieldType> & Record<string, AssignableType>>

        Type parameters

        • TSchema

        • FieldType = any

        • AssignableType = FieldType

        OperationTime: Timestamp
        +

        Type parameters

        • TSchema

        • FieldType

        NumericType: IntegerType | Decimal128 | Double
        OneOrMore<T>: T | ReadonlyArray<T>

        Type parameters

        • T

        OnlyFieldsOfType<TSchema, FieldType, AssignableType>: IsAny<TSchema[keyof TSchema], Record<string, FieldType>, AcceptedFields<TSchema, FieldType, AssignableType> & NotAcceptedFields<TSchema, FieldType> & Record<string, AssignableType>>

        Type parameters

        • TSchema

        • FieldType = any

        • AssignableType = FieldType

        OperationTime: Timestamp

        Represents a specific point in time on a server. Can be retrieved by using {@link Db#command}

        remarks

        See Run Command Response

        -
        OptionalId<TSchema>: EnhancedOmit<TSchema, "_id"> & { _id?: InferIdType<TSchema> }
        +
        OptionalId<TSchema>: EnhancedOmit<TSchema, "_id"> & { _id?: InferIdType<TSchema> }

        Add an optional _id field to an object shaped type

        -

        Type parameters

        • TSchema

        OptionalUnlessRequiredId<TSchema>: TSchema extends { _id: any } ? TSchema : OptionalId<TSchema>
        +

        Type parameters

        • TSchema

        OptionalUnlessRequiredId<TSchema>: TSchema extends { _id: any } ? TSchema : OptionalId<TSchema>

        Adds an optional _id field to an object shaped type, unless the _id field is requried on that type. In the case _id is required, this method continues to require_id.

        privateremarks

        ObjectId extends TSchema['_id'] is a confusing ordering at first glance. Rather than ask TSchema['_id'] extends ObjectId which translated to "Is the _id property ObjectId?" we instead ask "Does ObjectId look like (have the same shape) as the _id?"

        -

        Type parameters

        • TSchema

        ProfilingLevel: typeof ProfilingLevel[keyof typeof ProfilingLevel]
        ProfilingLevelOptions: CommandOperationOptions
        Projection<TSchema>: Document
        deprecated

        since v4.1.0: Since projections support all aggregation operations we have no plans to narrow this type further

        -

        Type parameters

        ProjectionOperators: Document
        deprecated

        since v4.1.0: Since projections support all aggregation operations we have no plans to narrow this type further

        -
        PropertyType<Type, Property>: string extends Property ? unknown : Property extends keyof Type ? Type[Property] : Property extends `${number}` ? Type extends ReadonlyArray<infer ArrayType> ? ArrayType : unknown : Property extends `${infer Key}.${infer Rest}` ? Key extends `${number}` ? Type extends ReadonlyArray<infer ArrayType> ? PropertyType<ArrayType, Rest> : unknown : Key extends keyof Type ? Type[Key] extends Map<string, infer MapType> ? MapType : PropertyType<Type[Key], Rest> : unknown : unknown

        Type parameters

        • Type

        • Property: string

        PullAllOperator<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any>>]?: TSchema[key] } & NotAcceptedFields<TSchema, ReadonlyArray<any>>) & {}

        Type parameters

        • TSchema

        PullOperator<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any>>]?: Partial<Flatten<TSchema[key]>> | FilterOperations<Flatten<TSchema[key]>> } & NotAcceptedFields<TSchema, ReadonlyArray<any>>) & {}

        Type parameters

        • TSchema

        PushOperator<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any>>]?: Flatten<TSchema[key]> | ArrayOperator<Flatten<TSchema[key]>[]> } & NotAcceptedFields<TSchema, ReadonlyArray<any>>) & {}

        Type parameters

        • TSchema

        ReadConcernLevel: typeof ReadConcernLevel[keyof typeof ReadConcernLevel]
        ReadConcernLike: ReadConcern | { level: ReadConcernLevel } | ReadConcernLevel
        ReadPreferenceLike: ReadPreference | ReadPreferenceMode
        ReadPreferenceMode: typeof ReadPreferenceMode[keyof typeof ReadPreferenceMode]
        ReduceFunction<TKey, TValue>: (key: TKey, values: TValue[]) => TValue

        Type parameters

        Type declaration

          • (key: TKey, values: TValue[]): TValue
          • Parameters

            • key: TKey
            • values: TValue[]

            Returns TValue

        RegExpOrString<T>: T extends string ? BSONRegExp | RegExp | T : T

        Type parameters

        • T

        RemoveUserOptions: CommandOperationOptions
        ResumeToken: unknown
        +

        Type parameters

        • TSchema

        ProfilingLevel: typeof ProfilingLevel[keyof typeof ProfilingLevel]
        ProfilingLevelOptions: CommandOperationOptions
        Projection<TSchema>: Document
        deprecated

        since v4.1.0: Since projections support all aggregation operations we have no plans to narrow this type further

        +

        Type parameters

        ProjectionOperators: Document
        deprecated

        since v4.1.0: Since projections support all aggregation operations we have no plans to narrow this type further

        +
        PropertyType<Type, Property>: string extends Property ? unknown : Property extends keyof Type ? Type[Property] : Property extends `${number}` ? Type extends ReadonlyArray<infer ArrayType> ? ArrayType : unknown : Property extends `${infer Key}.${infer Rest}` ? Key extends `${number}` ? Type extends ReadonlyArray<infer ArrayType> ? PropertyType<ArrayType, Rest> : unknown : Key extends keyof Type ? Type[Key] extends Map<string, infer MapType> ? MapType : PropertyType<Type[Key], Rest> : unknown : unknown

        Type parameters

        • Type

        • Property: string

        PullAllOperator<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any>>]?: TSchema[key] } & NotAcceptedFields<TSchema, ReadonlyArray<any>>) & {}

        Type parameters

        • TSchema

        PullOperator<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any>>]?: Partial<Flatten<TSchema[key]>> | FilterOperations<Flatten<TSchema[key]>> } & NotAcceptedFields<TSchema, ReadonlyArray<any>>) & {}

        Type parameters

        • TSchema

        PushOperator<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any>>]?: Flatten<TSchema[key]> | ArrayOperator<Flatten<TSchema[key]>[]> } & NotAcceptedFields<TSchema, ReadonlyArray<any>>) & {}

        Type parameters

        • TSchema

        ReadConcernLevel: typeof ReadConcernLevel[keyof typeof ReadConcernLevel]
        ReadConcernLike: ReadConcern | { level: ReadConcernLevel } | ReadConcernLevel
        ReadPreferenceLike: ReadPreference | ReadPreferenceMode
        ReadPreferenceMode: typeof ReadPreferenceMode[keyof typeof ReadPreferenceMode]
        ReduceFunction<TKey, TValue>: (key: TKey, values: TValue[]) => TValue

        Type parameters

        Type declaration

          • (key: TKey, values: TValue[]): TValue
          • Parameters

            • key: TKey
            • values: TValue[]

            Returns TValue

        RegExpOrString<T>: T extends string ? BSONRegExp | RegExp | T : T

        Type parameters

        • T

        RemoveUserOptions: CommandOperationOptions
        ResumeToken: unknown

        Represents the logical starting point for a new or resuming Change Stream on the server.

        -
        ReturnDocument: typeof ReturnDocument[keyof typeof ReturnDocument]
        RunCommandOptions: CommandOperationOptions
        SchemaMember<T, V>: { [ P in keyof T]?: V } | {}

        Type parameters

        • T

        • V

        ServerApiVersion: typeof ServerApiVersion[keyof typeof ServerApiVersion]
        ServerEvents: { closed: any; connect: any; descriptionReceived: any; ended: any; serverHeartbeatFailed: any; serverHeartbeatStarted: any; serverHeartbeatSucceeded: any } & ConnectionPoolEvents & EventEmitterWithState
        ServerOptions: Omit<ConnectionPoolOptions, "id" | "generation" | "hostAddress"> & MonitorOptions
        ServerSelector: (topologyDescription: TopologyDescription, servers: ServerDescription[]) => ServerDescription[]

        Type declaration

        ServerSessionId: { id: Binary }

        Type declaration

        ServerType: typeof ServerType[keyof typeof ServerType]
        SetFields<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any> | undefined>]?: OptionalId<Flatten<TSchema[key]>> | AddToSetOperators<OptionalId<Flatten<TSchema[key]>>[]> } & NotAcceptedFields<TSchema, ReadonlyArray<any> | undefined>) & {}

        Type parameters

        • TSchema

        SetProfilingLevelOptions: CommandOperationOptions
        Sort: string | Exclude<SortDirection, { $meta: string }> | string[] | {} | Map<string, SortDirection> | [string, SortDirection][] | [string, SortDirection]
        SortDirection: 1 | -1 | "asc" | "desc" | "ascending" | "descending" | { $meta: string }
        Stream: Socket | TLSSocket
        SupportedSocketOptions: Pick<TcpNetConnectOpts, typeof LEGAL_TCP_SOCKET_OPTIONS[number]>
        SupportedTLSConnectionOptions: Pick<TLSConnectionOptions, Extract<keyof TLSConnectionOptions, typeof LEGAL_TLS_SOCKET_OPTIONS[number]>>
        SupportedTLSSocketOptions: Pick<TLSSocketOptions, Extract<keyof TLSSocketOptions, typeof LEGAL_TLS_SOCKET_OPTIONS[number]>>
        TagSet: {}

        Type declaration

        • [key: string]: string
        TopologyEvents: { close: any; connect: any; error: any; serverClosed: any; serverDescriptionChanged: any; serverOpening: any; timeout: any; topologyClosed: any; topologyDescriptionChanged: any; topologyOpening: any } & Omit<ServerEvents, "connect"> & ConnectionPoolEvents & ConnectionEvents & EventEmitterWithState
        TopologyType: typeof TopologyType[keyof typeof TopologyType]
        UpdateFilter<TSchema>: { $addToSet?: SetFields<TSchema>; $bit?: OnlyFieldsOfType<TSchema, NumericType | undefined, { and: IntegerType } | { or: IntegerType } | { xor: IntegerType }>; $currentDate?: OnlyFieldsOfType<TSchema, Date | Timestamp, true | { $type: "date" | "timestamp" }>; $inc?: OnlyFieldsOfType<TSchema, NumericType | undefined>; $max?: MatchKeysAndValues<TSchema>; $min?: MatchKeysAndValues<TSchema>; $mul?: OnlyFieldsOfType<TSchema, NumericType | undefined>; $pop?: OnlyFieldsOfType<TSchema, ReadonlyArray<any>, 1 | -1>; $pull?: PullOperator<TSchema>; $pullAll?: PullAllOperator<TSchema>; $push?: PushOperator<TSchema>; $rename?: Record<string, string>; $set?: MatchKeysAndValues<TSchema>; $setOnInsert?: MatchKeysAndValues<TSchema>; $unset?: OnlyFieldsOfType<TSchema, any, "" | true | 1> } & Document

        Type parameters

        • TSchema

        W: number | "majority"
        WithId<TSchema>: EnhancedOmit<TSchema, "_id"> & { _id: InferIdType<TSchema> }
        +
        ReturnDocument: typeof ReturnDocument[keyof typeof ReturnDocument]
        RunCommandOptions: CommandOperationOptions
        SchemaMember<T, V>: { [ P in keyof T]?: V } | {}

        Type parameters

        • T

        • V

        ServerApiVersion: typeof ServerApiVersion[keyof typeof ServerApiVersion]
        ServerEvents: { closed: any; connect: any; descriptionReceived: any; ended: any; serverHeartbeatFailed: any; serverHeartbeatStarted: any; serverHeartbeatSucceeded: any } & ConnectionPoolEvents & EventEmitterWithState
        ServerOptions: Omit<ConnectionPoolOptions, "id" | "generation" | "hostAddress"> & MonitorOptions
        ServerSelector: (topologyDescription: TopologyDescription, servers: ServerDescription[]) => ServerDescription[]

        Type declaration

        ServerSessionId: { id: Binary }

        Type declaration

        ServerType: typeof ServerType[keyof typeof ServerType]
        SetFields<TSchema>: ({ readonly [ key in KeysOfAType<TSchema, ReadonlyArray<any> | undefined>]?: OptionalId<Flatten<TSchema[key]>> | AddToSetOperators<OptionalId<Flatten<TSchema[key]>>[]> } & NotAcceptedFields<TSchema, ReadonlyArray<any> | undefined>) & {}

        Type parameters

        • TSchema

        SetProfilingLevelOptions: CommandOperationOptions
        Sort: string | Exclude<SortDirection, { $meta: string }> | string[] | {} | Map<string, SortDirection> | [string, SortDirection][] | [string, SortDirection]
        SortDirection: 1 | -1 | "asc" | "desc" | "ascending" | "descending" | { $meta: string }
        Stream: Socket | TLSSocket
        SupportedSocketOptions: Pick<TcpNetConnectOpts, typeof LEGAL_TCP_SOCKET_OPTIONS[number]>
        SupportedTLSConnectionOptions: Pick<TLSConnectionOptions, Extract<keyof TLSConnectionOptions, typeof LEGAL_TLS_SOCKET_OPTIONS[number]>>
        SupportedTLSSocketOptions: Pick<TLSSocketOptions, Extract<keyof TLSSocketOptions, typeof LEGAL_TLS_SOCKET_OPTIONS[number]>>
        TagSet: {}

        Type declaration

        • [key: string]: string
        TopologyEvents: { close: any; connect: any; error: any; serverClosed: any; serverDescriptionChanged: any; serverOpening: any; timeout: any; topologyClosed: any; topologyDescriptionChanged: any; topologyOpening: any } & Omit<ServerEvents, "connect"> & ConnectionPoolEvents & ConnectionEvents & EventEmitterWithState
        TopologyType: typeof TopologyType[keyof typeof TopologyType]
        UpdateFilter<TSchema>: { $addToSet?: SetFields<TSchema>; $bit?: OnlyFieldsOfType<TSchema, NumericType | undefined, { and: IntegerType } | { or: IntegerType } | { xor: IntegerType }>; $currentDate?: OnlyFieldsOfType<TSchema, Date | Timestamp, true | { $type: "date" | "timestamp" }>; $inc?: OnlyFieldsOfType<TSchema, NumericType | undefined>; $max?: MatchKeysAndValues<TSchema>; $min?: MatchKeysAndValues<TSchema>; $mul?: OnlyFieldsOfType<TSchema, NumericType | undefined>; $pop?: OnlyFieldsOfType<TSchema, ReadonlyArray<any>, 1 | -1>; $pull?: PullOperator<TSchema>; $pullAll?: PullAllOperator<TSchema>; $push?: PushOperator<TSchema>; $rename?: Record<string, string>; $set?: MatchKeysAndValues<TSchema>; $setOnInsert?: MatchKeysAndValues<TSchema>; $unset?: OnlyFieldsOfType<TSchema, any, "" | true | 1> } & Document

        Type parameters

        • TSchema

        W: number | "majority"
        WithId<TSchema>: EnhancedOmit<TSchema, "_id"> & { _id: InferIdType<TSchema> }

        Add an _id field to an object shaped type @public

        -

        Type parameters

        • TSchema

        WithSessionCallback: (session: ClientSession) => Promise<any> | void

        Type declaration

        WithTransactionCallback<T>: (session: ClientSession) => Promise<T>

        Type parameters

        • T = void

        Type declaration

        WithoutId<TSchema>: Omit<TSchema, "_id">
        +

        Type parameters

        • TSchema

        WithSessionCallback: (session: ClientSession) => Promise<any> | void

        Type declaration

        WithTransactionCallback<T>: (session: ClientSession) => Promise<T>

        Type parameters

        • T = void

        Type declaration

        WithoutId<TSchema>: Omit<TSchema, "_id">

        Remove the _id field from an object shaped type @public

        -

        Type parameters

        • TSchema

        Variables

        AuthMechanism: Readonly<{ MONGODB_AWS: "MONGODB-AWS"; MONGODB_CR: "MONGODB-CR"; MONGODB_DEFAULT: "DEFAULT"; MONGODB_GSSAPI: "GSSAPI"; MONGODB_PLAIN: "PLAIN"; MONGODB_SCRAM_SHA1: "SCRAM-SHA-1"; MONGODB_SCRAM_SHA256: "SCRAM-SHA-256"; MONGODB_X509: "MONGODB-X509" }> = ...
        AutoEncryptionLoggerLevel: Readonly<{ Error: 1; FatalError: 0; Info: 3; Trace: 4; Warning: 2 }> = ...
        BSONType: Readonly<{ array: 4; binData: 5; bool: 8; date: 9; dbPointer: 12; decimal: 19; double: 1; int: 16; javascript: 13; javascriptWithScope: 15; long: 18; maxKey: 127; minKey: -1; null: 10; object: 3; objectId: 7; regex: 11; string: 2; symbol: 14; timestamp: 17; undefined: 6 }> = ...
        BatchType: Readonly<{ DELETE: 3; INSERT: 1; UPDATE: 2 }> = ...
        CURSOR_FLAGS: readonly ["tailable", "oplogReplay", "noCursorTimeout", "awaitData", "exhaust", "partial"] = ...
        Compressor: Readonly<{ none: 0; snappy: 1; zlib: 2 }> = ...
        ExplainVerbosity: Readonly<{ allPlansExecution: "allPlansExecution"; executionStats: "executionStats"; queryPlanner: "queryPlanner"; queryPlannerExtended: "queryPlannerExtended" }> = ...
        GSSAPICanonicalizationValue: Readonly<{ forward: "forward"; forwardAndReverse: "forwardAndReverse"; none: "none"; off: false; on: true }> = ...
        LEGAL_TCP_SOCKET_OPTIONS: readonly ["family", "hints", "localAddress", "localPort", "lookup"] = ...
        LEGAL_TLS_SOCKET_OPTIONS: readonly ["ALPNProtocols", "ca", "cert", "checkServerIdentity", "ciphers", "crl", "ecdhCurve", "key", "minDHSize", "passphrase", "pfx", "rejectUnauthorized", "secureContext", "secureProtocol", "servername", "session"] = ...
        LoggerLevel: Readonly<{ DEBUG: "debug"; ERROR: "error"; INFO: "info"; WARN: "warn"; debug: "debug"; error: "error"; info: "info"; warn: "warn" }> = ...
        MONGO_CLIENT_EVENTS: readonly ["connectionPoolCreated", "connectionPoolClosed", "connectionCreated", "connectionReady", "connectionClosed", "connectionCheckOutStarted", "connectionCheckOutFailed", "connectionCheckedOut", "connectionCheckedIn", "connectionPoolCleared", "commandStarted", "commandSucceeded", "commandFailed", "serverOpening", "serverClosed", "serverDescriptionChanged", "topologyOpening", "topologyClosed", "topologyDescriptionChanged", "error", "timeout", "close", "serverHeartbeatStarted", "serverHeartbeatSucceeded", "serverHeartbeatFailed"] = ...
        Map: MapConstructor
        ObjectID: typeof ObjectId = ObjectId
        deprecated

        Please use ObjectId

        -
        ProfilingLevel: Readonly<{ all: "all"; off: "off"; slowOnly: "slow_only" }> = ...
        ReadConcernLevel: Readonly<{ available: "available"; linearizable: "linearizable"; local: "local"; majority: "majority"; snapshot: "snapshot" }> = ...
        ReadPreferenceMode: Readonly<{ nearest: "nearest"; primary: "primary"; primaryPreferred: "primaryPreferred"; secondary: "secondary"; secondaryPreferred: "secondaryPreferred" }> = ...
        ReturnDocument: Readonly<{ AFTER: "after"; BEFORE: "before" }> = ...
        ServerApiVersion: Readonly<{ v1: "1" }> = ...
        ServerType: Readonly<{ LoadBalancer: "LoadBalancer"; Mongos: "Mongos"; PossiblePrimary: "PossiblePrimary"; RSArbiter: "RSArbiter"; RSGhost: "RSGhost"; RSOther: "RSOther"; RSPrimary: "RSPrimary"; RSSecondary: "RSSecondary"; Standalone: "Standalone"; Unknown: "Unknown" }> = ...
        +

        Type parameters

        • TSchema

        Variables

        AuthMechanism: Readonly<{ MONGODB_AWS: "MONGODB-AWS"; MONGODB_CR: "MONGODB-CR"; MONGODB_DEFAULT: "DEFAULT"; MONGODB_GSSAPI: "GSSAPI"; MONGODB_PLAIN: "PLAIN"; MONGODB_SCRAM_SHA1: "SCRAM-SHA-1"; MONGODB_SCRAM_SHA256: "SCRAM-SHA-256"; MONGODB_X509: "MONGODB-X509" }> = ...
        AutoEncryptionLoggerLevel: Readonly<{ Error: 1; FatalError: 0; Info: 3; Trace: 4; Warning: 2 }> = ...
        BSONType: Readonly<{ array: 4; binData: 5; bool: 8; date: 9; dbPointer: 12; decimal: 19; double: 1; int: 16; javascript: 13; javascriptWithScope: 15; long: 18; maxKey: 127; minKey: -1; null: 10; object: 3; objectId: 7; regex: 11; string: 2; symbol: 14; timestamp: 17; undefined: 6 }> = ...
        BatchType: Readonly<{ DELETE: 3; INSERT: 1; UPDATE: 2 }> = ...
        CURSOR_FLAGS: readonly ["tailable", "oplogReplay", "noCursorTimeout", "awaitData", "exhaust", "partial"] = ...
        Compressor: Readonly<{ none: 0; snappy: 1; zlib: 2 }> = ...
        ExplainVerbosity: Readonly<{ allPlansExecution: "allPlansExecution"; executionStats: "executionStats"; queryPlanner: "queryPlanner"; queryPlannerExtended: "queryPlannerExtended" }> = ...
        GSSAPICanonicalizationValue: Readonly<{ forward: "forward"; forwardAndReverse: "forwardAndReverse"; none: "none"; off: false; on: true }> = ...
        LEGAL_TCP_SOCKET_OPTIONS: readonly ["family", "hints", "localAddress", "localPort", "lookup"] = ...
        LEGAL_TLS_SOCKET_OPTIONS: readonly ["ALPNProtocols", "ca", "cert", "checkServerIdentity", "ciphers", "crl", "ecdhCurve", "key", "minDHSize", "passphrase", "pfx", "rejectUnauthorized", "secureContext", "secureProtocol", "servername", "session"] = ...
        LoggerLevel: Readonly<{ DEBUG: "debug"; ERROR: "error"; INFO: "info"; WARN: "warn"; debug: "debug"; error: "error"; info: "info"; warn: "warn" }> = ...
        MONGO_CLIENT_EVENTS: readonly ["connectionPoolCreated", "connectionPoolClosed", "connectionCreated", "connectionReady", "connectionClosed", "connectionCheckOutStarted", "connectionCheckOutFailed", "connectionCheckedOut", "connectionCheckedIn", "connectionPoolCleared", "commandStarted", "commandSucceeded", "commandFailed", "serverOpening", "serverClosed", "serverDescriptionChanged", "topologyOpening", "topologyClosed", "topologyDescriptionChanged", "error", "timeout", "close", "serverHeartbeatStarted", "serverHeartbeatSucceeded", "serverHeartbeatFailed"] = ...
        Map: MapConstructor
        ObjectID: typeof ObjectId = ObjectId
        deprecated

        Please use ObjectId

        +
        ProfilingLevel: Readonly<{ all: "all"; off: "off"; slowOnly: "slow_only" }> = ...
        ReadConcernLevel: Readonly<{ available: "available"; linearizable: "linearizable"; local: "local"; majority: "majority"; snapshot: "snapshot" }> = ...
        ReadPreferenceMode: Readonly<{ nearest: "nearest"; primary: "primary"; primaryPreferred: "primaryPreferred"; secondary: "secondary"; secondaryPreferred: "secondaryPreferred" }> = ...
        ReturnDocument: Readonly<{ AFTER: "after"; BEFORE: "before" }> = ...
        ServerApiVersion: Readonly<{ v1: "1" }> = ...
        ServerType: Readonly<{ LoadBalancer: "LoadBalancer"; Mongos: "Mongos"; PossiblePrimary: "PossiblePrimary"; RSArbiter: "RSArbiter"; RSGhost: "RSGhost"; RSOther: "RSOther"; RSPrimary: "RSPrimary"; RSSecondary: "RSSecondary"; Standalone: "Standalone"; Unknown: "Unknown" }> = ...

        An enumeration of server types we know about

        -
        TopologyType: Readonly<{ LoadBalanced: "LoadBalanced"; ReplicaSetNoPrimary: "ReplicaSetNoPrimary"; ReplicaSetWithPrimary: "ReplicaSetWithPrimary"; Sharded: "Sharded"; Single: "Single"; Unknown: "Unknown" }> = ...
        +
        TopologyType: Readonly<{ LoadBalanced: "LoadBalanced"; ReplicaSetNoPrimary: "ReplicaSetNoPrimary"; ReplicaSetWithPrimary: "ReplicaSetWithPrimary"; Sharded: "Sharded"; Single: "Single"; Unknown: "Unknown" }> = ...

        An enumeration of topology types we know about

        Legend

        • Constructor
        • Property
        • Method
        • Accessor
        • Constructor
        • Property
        • Method
        • Inherited constructor
        • Inherited property
        • Inherited method
        • Static property
        • Static method
        • Private property

        Settings

        Theme

        Generated using TypeDoc

        \ No newline at end of file diff --git a/etc/docs/build.ts b/etc/docs/build.ts index 482a384f5b2..c15ed65506b 100755 --- a/etc/docs/build.ts +++ b/etc/docs/build.ts @@ -11,6 +11,7 @@ import { customSemverCompare, getCommandLineArguments, JsonVersionSchema, + LATEST_TAG, log, TomlVersionSchema, VersionSchema @@ -24,7 +25,10 @@ const RELEASES_JSON_FILE = './template/static/versions.json'; const copyGeneratedDocsToDocsFolder = () => exec(`cp -R temp/. ../../docs/.`); const removeTempDirectory = () => exec('rm -rf temp'); const installDependencies = () => exec('npm i --no-save --legacy-peer-deps typedoc'); -const buildDocs = () => exec('npm run build:typedoc'); +const buildDocs = ({ tag }: VersionSchema) => { + const revision = tag === LATEST_TAG ? 'main' : `v${tag}.0`; + return exec(`npm run build:typedoc -- --gitRevision ${revision}`); +}; async function copyNewDocsToGeneratedSite({ tag }: VersionSchema) { const outputDirectory = `./temp/${tag}`; @@ -49,7 +53,9 @@ async function updateSiteTemplateForNewVersion( } tomlData.versions.sort((a, b) => customSemverCompare(a.tag, b.tag)); - tomlData.current = tomlData.versions.find(({ tag }) => tag.toLowerCase() !== 'next').version; + tomlData.current = tomlData.versions.find( + ({ tag }) => tag.toLowerCase() !== LATEST_TAG.toLowerCase() + ).version; jsonVersions.sort((a, b) => customSemverCompare(a.version, b.version)); @@ -84,7 +90,7 @@ async function main() { await installDependencies(); log('Building docs for current branch'); - await buildDocs(); + await buildDocs(newVersion); log('Generating new static site...'); diff --git a/etc/docs/template/data/releases.toml b/etc/docs/template/data/releases.toml index ee4a9ccfc33..911bedba686 100644 --- a/etc/docs/template/data/releases.toml +++ b/etc/docs/template/data/releases.toml @@ -104,7 +104,7 @@ version = "3.x Core Driver" status = "not-supported" docs = "./core" api = "./core/api" -tag = "3.x" +tag = "3.-1" [[versions]] version = "2.2 Driver" diff --git a/etc/docs/utils.ts b/etc/docs/utils.ts index cb0c08693b9..945f91888cb 100644 --- a/etc/docs/utils.ts +++ b/etc/docs/utils.ts @@ -2,6 +2,8 @@ import { createInterface } from 'readline'; import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; +export const LATEST_TAG = 'Next'; + export interface JsonVersionSchema { version: string; } @@ -58,7 +60,7 @@ export function getCommandLineArguments(): { tag: string; status: string; skipPr type: 'string', description: 'The identifier for the version of the docs to update.', requiresArg: true, - default: 'next' + default: LATEST_TAG }) .option('status', { type: 'string', @@ -96,6 +98,9 @@ export function customSemverCompare(a: string, b: string) { const [majorB, minorB] = b.split('.').map(Number); if (majorA === majorB) { + if (minorA === minorB) { + return 0; + } return minorB > minorA ? 1 : -1; }