ambiten / core / runGarbageCollectorOnAllModels
Function: runGarbageCollectorOnAllModels()
runGarbageCollectorOnAllModels(
options?):Promise<GarbageCollectorRunResult>
Defined in: packages/core/src/gc/gcManager.ts:33
Runs garbage collection on all registered Ambiten model instances.
This delegates cleanup to each model's runGC() method so the operation remains context-aware and preserves middleware, schema hooks, query instrumentation, cache invalidation, and event publishing.
Parameters
options?
GarbageCollectorRunOptions = {}
Optional garbage collection execution options.
Returns
Promise<GarbageCollectorRunResult>
Summary of the garbage collection run.
