public function QueryFactory::getAggregate in MongoDB 8
Returns a aggregation query object for a given entity type.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
string $conjunction:
- AND: all of the conditions on the query need to match.
- OR: at least one of the conditions on the query need to match.
Return value
\Drupal\Core\Entity\Query\QueryAggregateInterface The query object that can query the given entity type.
Throws
\Drupal\Core\Entity\Query\QueryException
Overrides QueryFactoryInterface::getAggregate
File
- src/
Entity/ QueryFactory.php, line 50 - Contains Drupal\mongodb\Entity\ContentEntityStorage.
Class
Namespace
Drupal\mongodb\EntityCode
public function getAggregate(EntityTypeInterface $entity_type, $conjunction) {
// TODO: Implement getAggregate() method.
return new QueryAggregate($this->mongo, $entity_type, $conjunction, $this->namespaces);
}