insights: new graphql query endpoint to return aggregations for search results
View options
- Truncate descriptions
Created by: chwarwick
Create a new graphql query endpoint and resolvers to return aggregation data for a search query. This should accept as arguments the type of aggregation requested as well as the search query, version and search type currently sent to search a query parameters q, v and t
.
The return value should include a descending list of key (repo name, author, etc..) and counts (number of search results) ordered by the count field.
In addition the response should indicate if the api was unable to aggregate this data in the allowed time, this should not be returned as an error.

