When I make a query by grouping from my application it brings me a different data than what it brings me in the api explorer (In which if it brings the correct data)
Then I leave an image to compare the different answers that brings me the same query and passing the same variables
The data that brings me from the api explorer is on the right side (the correct one)
And the data that brings me from the application is the one on the left side (which is incorrect)
The query is this
query ($projectId: ID!, $since: DateTime!){
slackUserMetricsList(
filter: {
project: {
id: { equals: $projectId }
}
createdAt: { gte: $since }
},
groupBy: {
query: {
slackUser: {
name:{
as: "username"
}
}
answered: {
as: "answered",
fn: {
aggregate: SUM
}
}
unanswered: {
as: "unanswered"
fn: {
aggregate: SUM
}
}
skipped: {
as: "skipped",
fn: {
aggregate: SUM
}
}
outTime: {
as: "outTime",
fn: {
aggregate: SUM
}
}
}
sort: [
{ alias: "username", direction: ASC }
]
}
) {
groups {
username: String
answered: Int
unanswered: Int
skipped: Int
outTime: Int
}
}
}