Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CollectionOptions<Document>

Collection construction options.

Type parameters

  • Document

Hierarchy

  • CollectionOptions

Properties

documentsOriginality

documentsOriginality: DocumentOriginality

Which version of document to store: clone or original.

indexKeys

indexKeys: IndexedKey<Document>[]

Name of document keys, in dot notation, that need to be indexed.

default

null Only primary key property will be indexed.

schema

schema: JSONSchema

JSON Schema used for document validation.

default

null Documents won't be validated.

validateQueries

validateQueries: boolean

Whether search and update mongoose queries need to be validated before respective operations.

default

true