Does GraphQL query support group by date periods?

I want to group Weaviate GraphQL results by date periods, Does GraphQL query support it? If yes, how to create the query?

For example, I need to group results by date like this:

"date_ranges": [
				{
					"from": "now-1y",
					"to": "now"
				},
				{
					"from": "now-2y",
					"to": "now"
				},
				{
					"from": "now-5y",
					"to": "now"
				}
			]

hi Garane. It doesn’t.

I believe the best way to accomplish that would be process the results on the code level.

Let me know if that helps.

Thank your for the response, I did it in my code.

1 Like