for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\ODM\MongoDB\Aggregation\Stage;
/**
* Fluent interface for adding a $addFields stage to an aggregation pipeline.
*/
final class AddFields extends Operator
{
* {@inheritdoc}
public function getExpression() : array
return [
'$addFields' => $this->expr->getExpression(),
];
}