--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Perform aggregate queries
- !ruby/struct:SM::Flow::P 
  body: "@example the count of friends"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.aggregate(:all.count)\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the minimum age, the maximum age and the total age of friends"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.aggregate(:age.min, :age.max, :age.sum)\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the average age, grouped by gender"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.aggregate(:age.avg, :fields =&gt; [ :gender ])\n"
- !ruby/struct:SM::Flow::P 
  body: "@param aggregates [Symbol, ...] operators to aggregate with @params query [Hash] the conditions"
- !ruby/struct:SM::Flow::P 
  body: "@return [Array,Numeric,DateTime,Date,Time] the results of the"
- !ruby/struct:SM::Flow::VERB 
  body: "  aggregate query\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Aggregates::Functions#aggregate
is_singleton: false
name: aggregate
params: (*args)
visibility: public
