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 #9

Open
wants to merge 2 commits into
base: NODE-6506-add-support-for-encrypted-schemas
Choose a base branch
from

Conversation

aditi-khare-mongoDB
Copy link

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

@aditi-khare-mongoDB aditi-khare-mongoDB changed the base branch from master to NODE-6506-add-support-for-encrypted-schemas January 29, 2025 22:35
@aditi-khare-mongoDB aditi-khare-mongoDB changed the title Node 6627/ts schema feat(NODE-6627): Add TS support to encrypted schemas Jan 29, 2025
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.

1 participant