Skip to content

Commit

Permalink
add trimFactor to rangeOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
adriandole committed May 31, 2024
1 parent 55962a9 commit 5106ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/client-side-encryption/client-side-encryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -1168,15 +1168,15 @@ class EncryptOpts {
rangeOpts: Optional<RangeOpts>
}

// NOTE: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes.
// RangeOpts specifies index options for a Queryable Encryption field supporting "range" queries.
// min, max, sparsity, and precision must match the values set in the encryptedFields of the destination collection.
// min, max, trimFactor, sparsity, and precision must match the values set in the encryptedFields of the destination collection.
// For double and decimal128, min/max/precision must all be set, or all be unset.
class RangeOpts {
// min is required if precision is set.
min: Optional<BSONValue>,
// max is required if precision is set.
max: Optional<BSONValue>,
trimFactor: Int64,
sparsity: Int64,
// precision may only be set for double or decimal128.
precision: Optional<Int32>
Expand Down

0 comments on commit 5106ee6

Please sign in to comment.