-
-
Save ProbablyBrianBurgess/10f5138192936994ba8c6574e77452d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a | b | c | d | |
---|---|---|---|---|
hello | world | 1 | 3 | |
hello2 | 2 | 6 | ||
hello3 | world3 | 9 | 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"errors": [ | |
{ | |
"message": "Cannot return null for non-nullable field HelloAggregates.keys.", | |
"locations": [ | |
{ | |
"line": 13, | |
"column": 7 | |
} | |
], | |
"path": [ | |
"hellos", | |
"groupedAggregates", | |
2, | |
"keys", | |
0 | |
] | |
} | |
], | |
"data": { | |
"hellos": { | |
"groupedAggregates": [ | |
{ | |
"keys": [ | |
"world", | |
"1", | |
"3" | |
], | |
"distinctCount": { | |
"a": "1" | |
} | |
}, | |
{ | |
"keys": [ | |
"world3", | |
"9", | |
"5" | |
], | |
"distinctCount": { | |
"a": "1" | |
} | |
}, | |
{ | |
"keys": null, | |
"distinctCount": { | |
"a": "1" | |
} | |
} | |
] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query GetGrouped { | |
hellos { | |
groupedAggregates(groupBy: [B, C, D]) { | |
keys | |
distinctCount { | |
a | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table hello | |
( | |
a varchar(100) not null | |
primary key, | |
b varchar(100), | |
c integer, | |
d integer | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment