Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DbCollectionOptions

Hierarchy

  • DbCollectionOptions

Index

Properties

Optional j

j: boolean

Specify a journal write concern.

Optional pkFactory

pkFactory: Object

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

Optional raw

raw: boolean

Return document results as raw BSON buffers.

Optional readConcern

readConcern: ReadConcern

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: boolean

Serialize functions on any object.

Optional strict

strict: boolean

Returns an error if the collection does not exist.

Optional w

w: number | string

The write concern.

Optional wtimeout

wtimeout: number

The write concern timeout.

Generated using TypeDoc