Sample on usage of Azure Function to execute conditional cross partition CosmosDB query with Aggregates