MongoLink`
MongoLink`

MongoCollectionAggregate

MongoCollectionAggregate[MongoCollection[],pipeline]

calculates aggregate values for the data in a MongoCollection.

Details

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Connect to a client:

In[1]:=
Click for copyable input
Out[1]=

Connect to a the "WolframTestCollection" collection in the "WolframTestDB" database:

In[1]:=
Click for copyable input
Out[1]=

Aggregate values for count and average, grouped by sex:

In[1]:=
Click for copyable input
Out[1]=

View aggregated data:

In[1]:=
Click for copyable input
Out[1]=