Hello everyone,
I am trying to groupBy date a Query. The things is that date is very precise here, I wanted to know the way to trim the date to get only the YYYY-MM-DD, because I want my array being grouped by day.
Could someone help me ?
Would be grateful. Thanks a lot !!
query {
refundRequestsList(groupBy: {
query: {
createdAt: {
as: "date"
}
_group: {
as:"refunds"
}
}
}){
groups{
date: String
refunds: RefundRequestGroup
{
items{
id
}
}
}
}
}