Documentation
    Preparing search index...

    Class InjectMetaMiddleware

    Backend middleware that automatically timestamps and logs user activity. Injects createdAt, updatedAt, deletedAt and corresponding By relations using the current Context user when the object undergoes CRUD operations.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _user: User | undefined

    Methods

    • Intercepts the request right before execution to append tracking metadata.

      Parameters

      • dataObject: DataObjectClass<any>

        The DataObject entering the database operation.

      • action: BackendAction

        CREATE, UPDATE, or DELETE context.

      • Optionalparams: MiddlewareParams

        Optional parameters passed via the adapter execution pipeline.

      Returns void