File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/client-side-encryption Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -882,6 +882,19 @@ export interface ClientEncryptionOptions {
882
882
* // `1_000` is used as the timeout for createDataKey call
883
883
* await clientEncryption.createDataKey('local');
884
884
* ```
885
+ *
886
+ * If `timeoutMS` is configured on the provided client, the client's timeoutMS value
887
+ * will be used unless `timeoutMS` is also provided as a separate option.
888
+ *
889
+ * ```typescript
890
+ * const client = new MongoClient('<uri>', { timeoutMS: 2_000 });
891
+ *
892
+ * // timeoutMS is set to 1_000
893
+ * const clientEncryption = new ClientEncryption(client, {
894
+ * timeoutMS: 1_000
895
+ * kmsProviders: { local: { key: '<KEY>' } }
896
+ * });
897
+ * ```
885
898
*/
886
899
timeoutMS ?: number ;
887
900
}
You can’t perform that action at this time.
0 commit comments