Skip to main content

parse_aggregate

Function parse_aggregate 

Source
pub fn parse_aggregate(value: &Value) -> Result<AggregateSpec, String>
Expand description

{ count?, sum?: string[], avg?, min?, max?, groupBy?: string }. An absent document asks for the default aggregate (just the count).