Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(NODE-6627): add TS support to encrypted schemas #15213

Closed

Conversation

aditi-khare-mongoDB
Copy link
Contributor

Summary

  • Typescript now throws an error when invalid values are provided to SchemaOptions.encryptionType or SchemaTypeOptions.encrypt

Examples

new Schema(name: { type: String, encrypt: { keyId: 'i am not a UUID' }, encryptionType: 'csfle'); // TS error
new Schema(name: { type: String, encrypt: { keyId: new BSON.UUID }, encryptionType: 'invalidType ); // TS error

vkarpov15 and others added 29 commits January 13, 2025 15:30
Co-authored-by: hasezoey <hasezoey@gmail.com>
…ticgh-11162

Schema.prototype.jsonSchema(): convert Mongoose Schema to JSON schema
ci(NODE-6505): CI Setup for Encryption Support
…ticgh-14971

fix(collection): avoid buffering if creating a collection during a connection interruption
Co-authored-by: Aditi Khare <106987683+aditi-khare-mongoDB@users.noreply.github.com>
Co-authored-by: Aditi Khare <106987683+aditi-khare-mongoDB@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants