and I want to count distinct user during a month.
My query looks something like
select count(logins) as compte from `bucket-name’ stats
UNNEST OBJECT_VALUES(stats.months) AS months
UNNEST OBJECT_NAMES(months) AS month
UNNEST OBJECT_VALUES(months.logins) AS logins
where meta(stats).id = ‘stats’ and month = ‘09-2021’;
But it doesn’t work ! I still get logins of ‘10-2021’