How to groupby date

created

2 Likes

@michaelcompton could @groupby(month) be available in Dgraph GraphQL as well? :heart: #easyLyfe

1 Like

I think that is even hard. But with the new custom directive. It would work. GraphQL is a very typed query language. So, everything must (BIG must) to be defined in the schema. So, that’s why is hard to support dynamic functions, that generate dynamic objects. But you probably will be able to run it via @custom.

BTW, if you have more questions. Open a new topic.

Cheers.

2 Likes

FYK we already support group by scalar feat(DQL): @groupby on scalar fields and count duplicate by minhaj-shakeel · Pull Request #7746 · dgraph-io/dgraph · GitHub

2 Likes