|
Calling compactStructuredEncryptionData requires ECOC tokens
1. Extend the mongo object in src/mongo/scripting/mozjs/mongo.h with a new method
2. Extend the EncryptedDBClientBase object with a new method that will access the key vault and generate the ECOC tokens
3. I believe it may be simpler for the EncryptedDBClientBase to then send the command onward to the server. If that is too complicated, have the helper return a compactStructuredEncryptionData BSON document and use JS code to send it to the server (via runCommand)
4. add a JS method on Collection in src/mongo/shell/collection.js
|