From fca78a2fc05486e020d0389b3a98d680e04b1c90 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Tue, 23 Jul 2024 16:12:07 -0400 Subject: [PATCH] note source of option validation errors is libmongocrypt --- .../client-side-encryption/client-side-encryption.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/client-side-encryption/client-side-encryption.md b/source/client-side-encryption/client-side-encryption.md index 61de3d74e0..5314d079d2 100644 --- a/source/client-side-encryption/client-side-encryption.md +++ b/source/client-side-encryption/client-side-encryption.md @@ -1214,8 +1214,8 @@ query. Drivers MUST document the following behavior: #### contentionFactor -contentionFactor may be used to tune performance. Only applies when algorithm is "Indexed" or "Range". It is an error to -set contentionFactor when algorithm is not "Indexed" or "Range". +contentionFactor may be used to tune performance. Only applies when algorithm is "Indexed" or "Range". libmongocrypt +returns an error if contentionFactor is set for a non-applicable algorithm. #### queryType @@ -1224,15 +1224,16 @@ One of the strings: - "equality" - "range" -queryType only applies when algorithm is "Indexed" or "Range". It is an error to set queryType when algorithm is not -"Indexed" or "Range". +queryType only applies when algorithm is "Indexed" or "Range". libmongocrypt returns an error if queryType is set for a +non-applicable queryType. > [!NOTE] > The "range" queryType is currently unstable API and subject to backwards breaking changes. #### rangeOpts -rangeOpts only applies when algorithm is "range". It is an error to set rangeOpts when algorithm is not "range". +rangeOpts only applies when algorithm is "range". libmongocrypt returns an error if rangeOpts is set for a +non-applicable algorithm. > [!NOTE] > rangeOpts is currently unstable API and subject to backwards breaking changes.