Module - ChangeLog
It will track insert, update and delete operations on your entities.
Once you have it setup, assign you the role ChangeLog.Admin
(You can get it via
Roles_ChangeLog.ChangeLog_Admin
), and in Admin UI, you will be able to see all changes in the
entity named FF Change Logs
.
Installation
Section titled “Installation”npm add firstly@latest -D
import { changelog } from 'firstly/changelog/server'
export const api = remultApi({ modules: [changelog()],})
Use the withChangeLog
function to wrap your entity options.
import { withChangeLog } from 'firstly/changeLog'
@Entity( 'users', withChangeLog({ // ... }),)class User {}
Yes, that’s it! 🎉