type
AfterCommitEffect
type AfterCommitEffect struct {
// Operation identifies the committed operation.
Operation Operation
// CollectionID identifies the affected collection.
CollectionID schema.StableID
// GlobalID identifies the affected global, when applicable.
GlobalID schema.StableID
// DocumentID identifies the affected document.
DocumentID string
// Run performs the post-commit side effect.
Run func(context.Context) error
}Identity and executable work for one committed hook.