---
name: "mongoc_client_encryption_encrypt_range_opts_t"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_encryption_encrypt_range_opts_t"
---

# mongoc\_client\_encryption\_encrypt\_range\_opts\_t(3)

## SYNOPSIS

```
typedef struct _mongoc_client_encryption_encrypt_range_opts_t mongoc_client_encryption_encrypt_range_opts_t;
```

Added in version 1.24.0.

RangeOpts specifies index options for a Queryable Encryption field supporting "range" queries. Used to set options for *mongoc\_client\_encryption\_encrypt()*.

The options min, max, trim factor, sparsity, and range must match the values set in the encryptedFields of the destination collection.

For double and decimal128 fields, min/max/precision must all be set, or all be unset.

**SEE ALSO:**

```
mongoc_client_encryption_encrypt()
mongoc_client_encryption_encrypt_opts_t
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
