goosetyped.gtdocumentmetadataargs
Home > @pebula/goosetyped > GtDocumentMetadataArgs
#
Signature: GtDocumentMetadataArgs interface#
PropertiesProperty | Type | Description |
---|---|---|
autoCreate | boolean | See https://mongoosejs.com/docs/guide.html\#autoCreate |
autoIndex | boolean | See https://mongoosejs.com/docs/guide.html\#autoIndex |
bufferCommands | boolean | See https://mongoosejs.com/docs/guide.html\#bufferCommands |
capped | boolean | number | { size?: number; max?: number; autoIndexId?: boolean; } | See https://mongoosejs.com/docs/guide.html\#capped |
collation | mongodb.CollationDocument | See https://mongoosejs.com/docs/guide.html\#collation |
collection | string | The collection name in the database Optional: When not set, induced from model name |
connectionId | string | The 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. |
minimize | boolean | See https://mongoosejs.com/docs/guide.html\#minimize |
skipInit | boolean | Whether to skip initialization Optional: When not set, default's to falseNote that this refer to the skipInit from mongoose. |