Defines setup logic to be run during application bootstrap. Receives the Injector as an argument, which allows application providers to be used as part of the setup. This hook will be called on both the main server and the worker processes.
async init(injector: Injector) {
const myService = injector.get(MyService);
await myService.doSomething();
}
Logs a search event: either a list view or a result click.
Logs a search query.
The SQL-based implementation of the AnalyticsStrategy. This will store analytics data in the SQL database used by your Vendure instance.
Note that for production workloads, the ClickHouse implementation is recommended.