project() public method

Passes along the documents with only the specified fields to the next stage in the pipeline. The specified fields can be existing fields from the input documents or newly computed fields.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/project/
public project ( ) : Project
return Doctrine\MongoDB\Aggregation\Stage\Project
示例#1
0
文件: Stage.php 项目: alcaeus/mongodb
 /**
  * Passes along the documents with only the specified fields to the next
  * stage in the pipeline. The specified fields can be existing fields from
  * the input documents or newly computed fields.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/project/
  *
  * @return Stage\Project
  */
 public function project()
 {
     return $this->builder->project();
 }