Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DbCreateOptions

Index

Properties

Optional authSource

authSource: undefined | string

If the database authentication is dependent on another databaseName.

Optional bufferMaxEntries

bufferMaxEntries: undefined | number

Sets a cap on how many operations the driver will buffer up before giving up on getting a working connection, default is -1 which is unlimited.

Optional forceServerObjectId

forceServerObjectId: undefined | true | false

Force server to assign _id values instead of driver.

Optional ignoreUndefined

ignoreUndefined: undefined | true | false

Specify if the BSON serializer should ignore undefined fields.

Optional j

j: undefined | true | false

Specify a journal write concern.

Optional native_parser

native_parser: undefined | true | false

The current value of the parameter native_parser.

Optional pkFactory

pkFactory: Object

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

Optional promiseLibrary

promiseLibrary: Object

A Promise library class the application wishes to use such as Bluebird, must be ES6 compatible.

Optional promoteLongs

promoteLongs: undefined | true | false

Promotes Long values to number if they fit inside the 53 bits resolution.

Optional raw

raw: undefined | true | false

Return document results as raw BSON buffers.

Optional readConcern

readConcern: undefined | object

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

Optional readPreference

readPreference: ReadPreference | string

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

Optional serializeFunctions

serializeFunctions: undefined | true | false

Serialize functions on any object.

Optional w

w: number | string

The write concern.

Optional wtimeout

wtimeout: undefined | number

The write concern timeout.

Generated using TypeDoc