Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DbCollectionOptions

Hierarchy

  • DbCollectionOptions

Index

Properties

Optional j

j: undefined | true | false

Specify a journal write concern.

Optional pkFactory

pkFactory: Object

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

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 strict

strict: undefined | true | false

Returns an error if the collection does not exist.

Optional w

w: number | string

The write concern.

Optional wtimeout

wtimeout: undefined | number

The write concern timeout.

Generated using TypeDoc