mongoc_client_encryption_encrypt_opts_set_query_type

Synopsis

#define MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY "equality"
#define MONGOC_ENCRYPT_QUERY_TYPE_RANGE "range"
#define MONGOC_ENCRYPT_QUERY_TYPE_RANGEPREVIEW "rangePreview" // Deprecated.
#define MONGOC_ENCRYPT_QUERY_TYPE_SUBSTRINGPREVIEW "substringPreview" // Deprecated.
#define MONGOC_ENCRYPT_QUERY_TYPE_SUBSTRINGPREVIEW "substring"
#define MONGOC_ENCRYPT_QUERY_TYPE_PREFIXPREVIEW "prefixPreview" // Deprecated.
#define MONGOC_ENCRYPT_QUERY_TYPE_PREFIX "prefix"
#define MONGOC_ENCRYPT_QUERY_TYPE_SUFFIXPREVIEW "suffixPreview" // Deprecated.
#define MONGOC_ENCRYPT_QUERY_TYPE_SUFFIX "suffix"

void mongoc_client_encryption_encrypt_opts_set_query_type (
   mongoc_client_encryption_encrypt_opts_t *opts, const char* query_type);

Added in version 1.22.0.

Sets the query type for explicit encryption.

Parameters

See also:

See CSFLE explicit encryption <explicit-encryption-csfle> and Queryable Encryption <explicit-encryption-qe> for query type usage.

Author

MongoDB, Inc

Info

Sep 04, 2026 2.5.2 libmongoc