|
CollectionFind::fieldsSet document field filter Description
public mysql_xdevapi\CollectionFind mysql_xdevapi\CollectionFind::fields(string
$projection)Defines the columns for the query to return. If not defined, all columns are used. Parameters
Return ValuesA CollectionFind object that can be used for further processing. ExamplesExample #1 mysql_xdevapi\CollectionFind::fields example The above example will output something similar to:
array(1) {
[0]=>
array(1) {
["name"]=>
string(6) "Alfred"
}
}
|