You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -583,11 +583,6 @@ if (!oldKey) {
583
583
-[<code>MongoCryptCreateDataKeyError</code>](#MongoCryptCreateDataKeyError) - If part way through the process a createDataKey invocation fails, an error will be rejected that has the partial `encryptedFields` that were created.
584
584
-[<code>MongoCryptCreateEncryptedCollectionError</code>](#MongoCryptCreateEncryptedCollectionError) - If creating the collection fails, an error will be rejected that has the entire `encryptedFields` that were created.
585
585
586
-
**Experimental**: Public Technical Preview
587
-
588
-
A convenience method for creating an encrypted collection.
589
-
This method will create data keys for any encryptedFields that do not have a `keyId` defined
590
-
and then create a new collection with the full set of encryptedFields.
591
586
592
587
| Param | Type | Description |
593
588
| --- | --- | --- |
@@ -598,6 +593,10 @@ and then create a new collection with the full set of encryptedFields.
598
593
|[options.masterKey]|[<code>AWSEncryptionKeyOptions</code>](#AWSEncryptionKeyOptions)\|[<code>AzureEncryptionKeyOptions</code>](#AzureEncryptionKeyOptions)\|[<code>GCPEncryptionKeyOptions</code>](#GCPEncryptionKeyOptions)| masterKey to pass to createDataKey |
599
594
| options.createCollectionOptions | <code>CreateCollectionOptions</code> | options to pass to createCollection, must include `encryptedFields`|
600
595
596
+
A convenience method for creating an encrypted collection.
597
+
This method will create data keys for any encryptedFields that do not have a `keyId` defined
598
+
and then create a new collection with the full set of encryptedFields.
599
+
601
600
**Returns**: <code>Promise.<{collection: Collection.<TSchema>, encryptedFields: Document}></code> - - created collection and generated encryptedFields
602
601
<aname="ClientEncryption+encrypt"></a>
603
602
@@ -708,13 +707,11 @@ An error indicating that something went wrong specifically with MongoDB Client E
708
707
<aname="MongoCryptCreateDataKeyError"></a>
709
708
710
709
## MongoCryptCreateDataKeyError
711
-
**Experimental**: Public Technical Preview
712
710
An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create data keys
An error indicating that `ClientEncryption.createEncryptedCollection()` failed to create a collection
719
716
720
717
<aname="MongoCryptAzureKMSRequestError"></a>
@@ -916,8 +913,8 @@ For double and decimal128, min/max/precision must all be set, or all be unset.
916
913
|[keyId]|[<code>ClientEncryptionDataKeyId</code>](#ClientEncryptionDataKeyId)| The id of the Binary dataKey to use for encryption. |
917
914
|[keyAltName]| <code>string</code> | A unique string name corresponding to an already existing dataKey. |
918
915
|[algorithm]| <code>string</code> | The algorithm to use for encryption. Must be either `'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic'`, `'AEAD_AES_256_CBC_HMAC_SHA_512-Random'`, `'Indexed'` or `'Unindexed'`|
919
-
|[contentionFactor]| <code>bigint</code> \| <code>number</code> |(experimental) - the contention factor. |
920
-
| queryType | <code>'equality'</code> \| <code>'rangePreview'</code> |(experimental) - the query type supported. |
916
+
|[contentionFactor]| <code>bigint</code> \| <code>number</code> | the contention factor. |
917
+
| queryType | <code>'equality'</code> \| <code>'rangePreview'</code> |the query type supported. only the query type `equality` is stable at this time. queryType `rangePreview` is experimental. |
921
918
|[rangeOptions]|[<code>RangeOptions</code>](#RangeOptions)| (experimental) The index options for a Queryable Encryption field supporting "rangePreview" queries. |
Copy file name to clipboardExpand all lines: lib/clientEncryption.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -554,8 +554,6 @@ module.exports = function (modules) {
554
554
}
555
555
556
556
/**
557
-
* @experimental Public Technical Preview
558
-
*
559
557
* A convenience method for creating an encrypted collection.
560
558
* This method will create data keys for any encryptedFields that do not have a `keyId` defined
561
559
* and then create a new collection with the full set of encryptedFields.
@@ -635,8 +633,8 @@ module.exports = function (modules) {
635
633
* @property {ClientEncryptionDataKeyId} [keyId] The id of the Binary dataKey to use for encryption.
636
634
* @property {string} [keyAltName] A unique string name corresponding to an already existing dataKey.
637
635
* @property {string} [algorithm] The algorithm to use for encryption. Must be either `'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic'`, `'AEAD_AES_256_CBC_HMAC_SHA_512-Random'`, `'Indexed'` or `'Unindexed'`
* @property {'equality' | 'rangePreview'} queryType (experimental) - the query type supported.
636
+
* @property {bigint | number} [contentionFactor] - the contention factor.
637
+
* @property {'equality' | 'rangePreview'} queryType - the query type supported. only the query type `equality` is stable at this time. queryType `rangePreview` is experimental.
640
638
* @property {RangeOptions} [rangeOptions] (experimental) The index options for a Queryable Encryption field supporting "rangePreview" queries.
0 commit comments