how to do validation based on request.user in custom validators in nestjs
Private research annotation
Sign in to add a private research label or note.
- User
how to do validation based on request.user in custom validators in nestjs
- Assistant
In NestJS, you can create custom validators that take into account the current user (). Here's a step-by-step guide on how to achieve this:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.