PHP » GoLang |
login |
register |
about
|
GoLang MongoCursor::fields
request it (293)
GoLang replacement for PHP's MongoCursor::fields
[edit | history]
MongoCursor::fields(PECL mongo >=1.0.6) MongoCursor::fields — Sets the fields for a query Description
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. |
more
Recently updated
more
Most requested
more
Last requests
|