From b894687bea50b3f89b10df977613942b10258559 Mon Sep 17 00:00:00 2001 From: Andreas Hilbig Date: Wed, 11 Feb 2026 13:32:39 +0100 Subject: [PATCH] fix(history): default exportHostValueHistory limit to undefined When no limit is provided to exportHostValueHistory, return all available records instead of only one. This aligns GraphQL defaults with user expectations. - Change: set ZabbixHistoryGetParams.limit default to undefined - Type safety: widened limit type to number | null | undefined --- src/datasources/zabbix-history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasources/zabbix-history.ts b/src/datasources/zabbix-history.ts index d89bec0..9098223 100644 --- a/src/datasources/zabbix-history.ts +++ b/src/datasources/zabbix-history.ts @@ -35,7 +35,7 @@ export class ZabbixHistoryGetParams extends ParsedArgs { */ constructor(public itemids: number[] | number | string | string[], public output: string[] = ["value", "itemid", "clock", "ns"], - public limit: number | null = Array.isArray(itemids) ? itemids.length : 1, + public limit: number | null | undefined = undefined, public history: StorageItemType | string = StorageItemType.Text, time_from?: Date, time_until?: Date,