robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















show wiki  show source  compare to current  compare to previous  read  history 


avg()


MongoDB Driver Function Reference


Returns the averages for the selected fields.



<cursor>.avg([<field>[,...]])



Arguments


<cursor> A result set.
<field> A field name.



Returns


Returns a result set (cursor).



Example


db.employees.find().avg("age");


Selects the average of age field from the employees collection.




home | MongoDB Driver Function Reference | MongoDB Driver