Docs Menu

Docs HomeDevelop ApplicationsMongoDB Manual


KeyVault.addKeyAltName(UUID, keyAltName)

Adds the keyAltName to the keyAltNames array of the data encryption key with UUID.

keyAltName must be unique among all keys in the key vault.

Use the getKeyVault() method with a partial index filter on documents with keyAltNames to automatically create a unique index on the keyAltNames field.

This method is an alias for addKeyAlternateName().


See also:

What is MongoDB? →