From d8e95c7d8da261f73792fd4b7d0de92e315e35ee Mon Sep 17 00:00:00 2001 From: Marcelo Dalta Date: Wed, 26 Jul 2023 10:23:23 -0300 Subject: [PATCH] Query correction with date filter --- charting/src/pages/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charting/src/pages/home.js b/charting/src/pages/home.js index 88802c75..cd8452bc 100644 --- a/charting/src/pages/home.js +++ b/charting/src/pages/home.js @@ -13,7 +13,7 @@ query QueryMetrics($timestampGE: DateTime!, $timestampLT: DateTime!){ name readings @cascade { value - collection(filter: {timestamp: {ge: $timestampGE lt: $timestampLT}}) { + collection(filter: {timestamp: {ge: $timestampGE}, and: {timestamp: {lt: $timestampLT}}}) { timestamp } }