Skip to main content

Abstract Class: SimpleMongoEntity

Defined in: service-core/src/models/SimpleMongoEntity.ts:15

Provides a simple base class for all entity's that will be persisted in a MongoDB database. Unlike BaseMongoEntity this class does not provide optimistic locking or date created and modified tracking.

Extends​

Constructors​

Constructor​

new SimpleMongoEntity(other?): SimpleMongoEntity

Defined in: service-core/src/models/SimpleMongoEntity.ts:22

Parameters​

other?​

Partial<SimpleMongoEntity>

Returns​

SimpleMongoEntity

Overrides​

SimpleEntity.constructor

Properties​

_id?​

optional _id?: ObjectId

Defined in: service-core/src/models/SimpleMongoEntity.ts:20

The internal unique identifier used by MongoDB.


uid​

uid: string

Defined in: service-core/src/models/SimpleEntity.ts:25

The universally unique identifier of the entity.

Inherited from​

SimpleEntity.uid