Class DeleteMutator<TFields, TID, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields>

Mutator for deleting an existing entity.

Type Parameters

Hierarchy

Constructors

Properties

companionProvider: EntityCompanionProvider
databaseAdapter: EntityDatabaseAdapter<TFields>
entityConfiguration: EntityConfiguration<TFields>
metricsAdapter: IEntityMetricsAdapter
privacyPolicy: TPrivacyPolicy
queryContext: EntityQueryContext
viewerContext: TViewerContext

Methods

  • Delete the entity after authorizing against delete privacy rules. The entity is invalidated in all caches.

    Returns Promise<Result<void>>

    void result, where result error can be UnauthorizedError