Skip to content

Aggregate Functions

csamak edited this page May 26, 2014 · 1 revision

##Aggregate Functions

All of the AQL string functions are mapped to extensions of IEnumerable<T> in System.Linq (normal LINQ aggregates).

###Example

    dv.TwitterUsers.Select(i => i.friends_count).Sum()

will generate

    sum(for $i in dataset TwitterUsers return $i.friends_count)

For an example of each function, view the relevant tests.

###Supported Functions

  • count : Count()
  • avg : Average()
  • sum : Sum()
  • min : Min()
  • max : Max()