|  |  
 |   |   
 SYNOPSISvoid mongoc_auto_encryption_opts_set_schema_map (mongoc_auto_encryption_opts_t *opts, PARAMETERS
 Supplying a schema map provides more security than relying on JSON Schemas obtained from the server. It protects against a malicious server advertising a false JSON Schema, which could trick the client into sending unencrypted data that should be encrypted. Schemas supplied in the schema map only apply to configuring automatic encryption for Client-Side Field Level Encryption. Other validation rules in the JSON schema will not be enforced by the driver and will result in an error. The following is an example of a schema map which configures automatic encryption for the collection db.coll: {
The schema map does not apply to collections encrypted with: Queryable Encryption. Use mongoc_auto_encryption_opts_set_encrypted_fields_map() instead. SEE ALSO: mongoc_client_enable_auto_encryption() In-Use Encryption AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc. 
 
 |