Replies: 1 comment 1 reply
-
I think class-validator was intended for a static validation, like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a multitenant application, we build up the database connections on application startup. When a request comes in we bind the relevant database connection based on the hostname to the context object.
The issue is when a validation decorator needs to access the database (e.g checking for an object's existence), I'm currently unsure how I can inform the decorator of which database connection to use.
Beta Was this translation helpful? Give feedback.
All reactions