Hey @slow pollen, we've moved your question here. In future, please ask questions in one of the help channels as per the server rules.
Your original message was:
I'm not able to convert SQL query in directus extension GraphQL query.
For example I want to convert this query
SELECT district, MAX(date) FROM wheat GROUP BY district
into GraphQL, I'm trying like this.
return {
collection: "wheat",
query: {
aggregate: {
sum: ["date"],
},
group: ["district"],
},
}
But this give me GraphQL validation error
If there was additional context, @heavy wave will add it here for you. Your original post has been deleted.