Skip to content

Commit

Permalink
GroupBy non-string-keys Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-hettich committed Oct 11, 2023
1 parent 9f57bfa commit bd89b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core.Arango.DevExtreme/ArangoTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ public List<DxGroupResult> BuildGrouping(ArangoTransform aq, List<JObject> list,

var key = aq.Groups[level];

var items = list.GroupBy(x => x.Value<string>(key)).ToList();
var items = list.GroupBy(x => x.Value<object>(key)).ToList();

foreach (var item in items)
{
Expand Down
2 changes: 1 addition & 1 deletion Core.Arango.DevExtreme/DxGroupResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class DxGroupResult
{
[JsonProperty("key")]
[JsonPropertyName("key")]
public string Key { get; set; }
public object Key { get; set; }

[JsonProperty("display", NullValueHandling = NullValueHandling.Ignore)]
[JsonPropertyName("display")]
Expand Down

0 comments on commit bd89b2a

Please sign in to comment.