Path: redb/redb.Core/Query/Grouping/GroupFieldRequest.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Query/Grouping/GroupFieldRequest.cs
----
namespace redb.Core.Query.Grouping;
///
/// Request for grouping field for SQL function aggregate_grouped
///
public class GroupFieldRequest
{
///
/// Path that names the element itself in an array grouping: the key of GroupByArray(e => e.Skills, s => s),
/// the argument of Agg.Sum(g, h => h). Valid only for an array of simple values; a C# member name cannot
/// start with '$', so no field can be mistaken for it.
///
public const string ElementPath = "$element";
public string FieldPath { get; set; } = string.Empty;
public string Alias { get; set; } = string.Empty;
///
/// true = base field from _objects (scheme_id, parent_id, etc.)
/// false = Props field from _values (Props.Category, etc.)
///
public bool IsBaseField { get; set; } = false;
}