You are here

public function Condition::notExists in MongoDB 8

Queries for the existence of a field.

Parameters

string $field:

Return value

ConditionInterface;

Overrides ConditionInterface::notExists

See also

\Drupal\Core\Entity\Query\QueryInterface::notexists()

File

src/Entity/Condition.php, line 38
Contains Drupal\mongodb\Entity\ContentEntityStorage.

Class

Condition

Namespace

Drupal\mongodb\Entity

Code

public function notExists($field, $langcode = NULL) {
  $this
    ->condition($field, FALSE, '$exists', $langcode);
  return $this;
}