Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by BadRequest Exception
If you want to validate & transform the incoming Data before they go into the routes, then you can use Pipes. Sample git repo: nest-pipes More information: pipes Class validator: class-validator Zod: Zod Transform & Validate Incoming Data 1.
Idempotency Explained: Ensuring Reliable and Repeated API Calls in Nestjs
Idempotency refers to an operation that can be performed multiple times without causing additional effects. In other words, no matter how many times the same action is repeated, the result will always be the same as if it had been executed only once. Idempotency ensures that the operation is only processed once, even if it's executed multiple times, preventing duplicate payments or unintended outcomes.
Nestjs file upload like a Pro [in depth]
NestJS File Uploads to AWS S3 with Validation: A Comprehensive Guide Introduction File uploads are a common feature in many web applications. NestJS, a progressive Node.js framework, provides a convenient way to handle file uploads and integrate with cloud storage services like AWS S3. In this blog post, we'll explore how to implement file uploads with validation in NestJS and store the uploaded files on AWS S3. sample example i am showing here -- Prerequisites A NestJS project set up.
Validación de Datos en NestJS: De la Sintaxis a la Semántica
Juan Carlos Valderrábano Hernández Líder Tec. | Arq. Soft. | Full-Stack, Cloud & Agil. | Experto en diseño, implementación y mantenimiento de apps seguras y escalables. | #Java #Python #JavaScript #Spring #Angular #React #DevOps #CI/CD Location Xicotepec de Juárez, Puebla, México Work Tech lead | Software Architect Joined
The Ultimate Guide To Custom Role Based Access Without Third Party Libraries
Here, we have four roles: Sme, Sponsor, Admin, Operations.Initially, we had only 3 roles.Operations role was added later and Operations user has permissions similar to the Admin user.In the code, we had to replace every instance of if (user.type == USER_TYPES.ADMIN) with if (user.type == USER_TYPES.ADMIN || user.type == USER_TYPES.OPERATIONS).As this is time consuming and we can also miss many instances, we have created a roles module.
One-Time Password Generation Using speakeasy, Nest.js And MongoDB
Here, we have designed and developed a flow for OTP(One time password) for user registration and also blocking a user's account after the maximum retries for incorrect otp is exceeded. We will go in steps for generation, verification and blocking a user's account.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with BadRequest
Contact BadRequest, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack