Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
eventStore,
aggregates,
snapshotAdapter,
performanceTracer
})
const executeQuery = createQueryExecutor({
eventStore,
readModelConnectors,
snapshotAdapter,
readModels,
viewModels,
performanceTracer
})
const executeSaga = createSagaExecutor({
executeCommand,
executeQuery,
eventStore,
readModelConnectors,
snapshotAdapter,
schedulers,
sagas,
performanceTracer
})
Object.assign(resolve, {
executeCommand,
executeQuery,
executeSaga,
eventStore
})