Allow the injected filter for authenticated embedding to be injected as the first filter in pipeline
When you embed a chart with authenticated access you have the option to inject a function that returns a MongoDB Query to be injected as a filter on the chart. In this function you have access to the context object which provides info about the current user (token), this gives you the ability to filter the data per tenant in case of multi-tenant applications, but since this filter is only applied as chart filter and not as filter in the aggregation pipeline of the chart or as filter in the view used by the chart, it's really difficult to hit multi-tenant indexes (indexes that have the tenant id as a prefix) especially if the chart requires data processing in its pipeline. Provide the ability to select where this injected filter is applied for example as the first step in the aggregation pipeline of the chart, as a filter in the view that is used by the chart or as is now.