Entity

    Class EnforcingEntityCreator<TFields, TIDField, TViewerContext, TEntity, TPrivacyPolicy, TSelectedFields>

    Enforcing entity creator. All updates through this creator will throw if authorization is not successful.

    Type Parameters

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Commit the new entity after authorizing against creation privacy rules. Invalidates all caches for queries that would return new entity.

      Returns Promise<TEntity>

      authorized, cached, newly-created entity, throwing if unsuccessful

    • Set the value for entity field.

      Type Parameters

      • K extends string | number | symbol

      Parameters

      • fieldName: K

        entity field being updated

      • value: TFields[K]

        value for entity field

      Returns this

    MMNEPVFCICPMFPCPTTAAATR