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















read  source  history 


select()


MongoDB Driver Function Reference


Selects the fields specified into a result set.



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



Arguments


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


Field names may - but need not - be quoted. If asterisk is passed for fields or if fields are omitted, all fields will be selected.


Returns


Returns a result set (cursor).



Example


db.employees.find().select("name", "firstname", "age");


Selects name, firstname and age fields from the employees collection.




home | MongoDB Driver Function Reference | MongoDB Driver