Skip to main content

goosetyped.gtdocumentmetadataargs

Home > @pebula/goosetyped > GtDocumentMetadataArgs

GtDocumentMetadataArgs interface#

Signature:
export interface GtDocumentMetadataArgs extends GtSchemaMetadataArgs
Extends: GtSchemaMetadataArgs

Properties#

PropertyTypeDescription
autoCreatebooleanSee https://mongoosejs.com/docs/guide.html\#autoCreate
autoIndexbooleanSee https://mongoosejs.com/docs/guide.html\#autoIndex
bufferCommandsbooleanSee https://mongoosejs.com/docs/guide.html\#bufferCommands
cappedboolean | number | { size?: number; max?: number; autoIndexId?: boolean; }See https://mongoosejs.com/docs/guide.html\#capped
collationmongodb.CollationDocumentSee https://mongoosejs.com/docs/guide.html\#collation
collectionstringThe collection name in the database Optional: When not set, induced from model name
connectionIdstringThe connection id to use when registering the model. If a connection id is not defined (default behavior) then the model is registered using the default connection.Use addConnection to add a new connection to the connection pool available for models.If at the time of creating the model the connection does not exists, it will "wait" for the connection to be added.
minimizebooleanSee https://mongoosejs.com/docs/guide.html\#minimize
skipInitbooleanWhether to skip initialization Optional: When not set, default's to falseNote that this refer to the skipInit from mongoose.