method QueryBus.prototype.execute QueryBus.prototype.execute<TResult = unknown>(query: CqrsQuery): Promise<TResult> Executes a query. Type Parameters TResult = unknown Parameters query: CqrsQuery The query to execute Return Type Promise<TResult> The handler's result