You are here

public function Connection::nextId in MongoDB 8

File

drivers/lib/Drupal/Driver/Database/mongodb/Connection.php, line 39

Class

Connection

Namespace

Drupal\Driver\Database\mongodb

Code

public function nextId($existing_id = 0) {
  return \Drupal::service('mongo')
    ->nextId('generic', $existing_id);
}