Skip to content

Comments

Custom validator#81

Open
srohan99 wants to merge 5 commits intosunilksamanta:masterfrom
srohan99:custom-validator
Open

Custom validator#81
srohan99 wants to merge 5 commits intosunilksamanta:masterfrom
srohan99:custom-validator

Conversation

@srohan99
Copy link
Contributor

@srohan99 srohan99 commented Sep 23, 2025

Update bcrypt, custom unique validator, and mongoose connection

📌 Changes Introduced

Updated bcrypt package

Upgraded to the latest stable version for better compatibility with Node.js 20 and security patches.

Implemented custom unique validator plugin

Added a reusable Mongoose plugin to enforce uniqueness constraints at the schema level.

Provides cleaner validation handling and prevents duplicate data insertion.

Database connection update for Mongoose v8+

Refactored the MongoDB connection setup to remove deprecations.

Ensures compatibility with Mongoose 8.15.0 and MongoDB Atlas connection strings.

@animeshd9 animeshd9 self-assigned this Sep 25, 2025
@animeshd9 animeshd9 self-requested a review September 25, 2025 06:06
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.

2 participants