insights: provide a default aggregation type based on the search query
Created by: chwarwick
Currently when a client asks the graphql endpoint for aggregations and does not specify a mode, it defaults to REPO
because it is always available.
Remove the graphql default and add new logic to set the default mode as defined in the rfc
/cc @joelkw @felixfbecker @vovakulikov @unclejustin