|
MongoCursor::fieldsSets the fields for a query Description
public MongoCursor MongoCursor::fields
( array
$f
)
Fields are specified by "fieldname" : bool. Thus, to return only the "summary" field, one could say:
<?php To return all fields except the "hidden" field:
<?php Parameters
Return ValuesReturns this cursor. Errors/ExceptionsThrows MongoCursorException if this cursor has started iterating or a scalar argument is given. |