Skip to main content

Abstract Class: SimpleMongoEntity

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

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

Parameters

other?

Partial<SimpleMongoEntity>

Returns

SimpleMongoEntity

Overrides

SimpleEntity.constructor

Properties

_id?

optional _id?: ObjectId

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

The internal unique identifier used by MongoDB.


uid

uid: string

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

The universally unique identifier of the entity.

Inherited from

SimpleEntity.uid