diff --git a/examples/aggregated-query.rs b/examples/aggregated-query.rs index da33914..daee42e 100644 --- a/examples/aggregated-query.rs +++ b/examples/aggregated-query.rs @@ -10,7 +10,7 @@ pub fn config_env_var(name: &str) -> Result { struct MyAggTestStructure { counter: usize, calc_sum: Option, - calc_avg: Option, + calc_avg: Option, } #[tokio::main] @@ -35,8 +35,8 @@ async fn main() -> Result<(), Box> { .aggregate(|a| { a.fields([ a.field(path!(MyAggTestStructure::counter)).count(), - //a.field(path!(MyAggTestStructure::calc_sum)).sum("some_num"), // Not supported/enabled yet by Firestore, exists only on proto level - //a.field(path!(MyAggTestStructure::calc_avg)).avg("some_num"), + a.field(path!(MyAggTestStructure::calc_sum)).sum("some_num"), + a.field(path!(MyAggTestStructure::calc_avg)).avg("some_num"), ]) }) .obj()