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
Example #1
0
 /**
  * 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();
 }