#mongoDB Client-Side Field Level Encryption in nestjs

2 messages · Page 1 of 1 (latest)

old umbra
#

looking for working example for client side field level encryption in mongodb in
nestjs

west mist
#

@old umbra - See here:
https://mongoosejs.com/docs/field-level-encryption.html

Especially this part:

Note that Mongoose does not currently have any Mongoose-specific APIs for CSFLE. Mongoose defers all CSFLE-related work to the MongoDB Node.js driver, so the autoEncryption option for mongoose.connect() and mongoose.createConnection() is where you put all CSFLE-related configuration. Mongoose schemas currently don't support CSFLE configuration.