[CXX-2505] Provide Queryable Encryption API example for docs team Created: 04/May/22  Updated: 21/Jun/23  Resolved: 13/Jan/23

Status: Closed
Project: C++ Driver
Component/s: Docs Examples
Affects Version/s: None
Fix Version/s: 3.8.0

Type: Task Priority: Major - P3
Reporter: PM Bot Assignee: Kyle Kloberdanz
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2311 Provide FLE 2.0 API example for docs ... Closed
Epic Link: FLE 2.0 Support
Quarter: FY23Q2, FY24Q1
Upstream Changes Summary:

DRIVERS-2311:
Add example code for FLE 2 Automatic Encryption:

  • Create an encryptedFieldsMap with an indexed and unindexed field.
  • Create an FLE 2 collection.
  • Auto encrypt an insert and find with "Indexed" and "Unindexed" encrypted fields.

Please use the example in the Go driver as a reference.

Provide a link to the specification test: Explicit Encryption.


 Description   

This ticket was split from DRIVERS-2311, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 13/Jan/23 ]

Author:

{'name': 'Kyle Kloberdanz', 'email': 'kyle.kloberdanz@mongodb.com', 'username': 'kkloberdanz'}

Message: Provide FLE 2.0 API example for docs team (#923)

Provide FLE 2.0 API example for docs team.

CXX-2505

Add example code for FLE 2 Automatic Encryption:

  • Create an encryptedFieldsMap with an indexed and unindexed field.
  • Create an FLE 2 collection.
  • Auto encrypt an insert and find with "Indexed" and "Unindexed" encrypted fields.

Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/82cb3bc2565ffee1fd488791de37daebe4d1bf9f

Comment by Kyle Kloberdanz [ 12/Jan/23 ]

Prose spec test: https://github.com/mongodb/mongo-cxx-driver/commit/898827967bb2c218ae8931e1b4a5c1adbd32af18#diff-969a04c4731de2fe2bac52af290083f95a5f3baa8b7775b23d0dfd56608674bd

Jira: https://jira.mongodb.org/browse/CXX-2502

Generated at Wed Feb 07 22:06:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.