public static async Task <AggregationResult <T> > ToResultAsync <T>(this AggregationHelper <T> helper, Func <T, string> label)
        {
            var array = await helper.GetQuery().ToArrayAsync();

            return(AggregationResult <T> .Create(array, helper, label));
        }
        public static async Task <AggregationResult <TResult> > ToResultAsync <TSource, TResult>(this AggregationHelper <TSource, TResult> helper, IQueryable <TSource> query, Func <TResult, string> label)
        {
            var array = await helper.GetQuery(query).ToArrayAsync();

            return(AggregationResult <TResult> .Create(array, helper, label));
        }