Connectable model
Models that are based on direct connection to DB
Example (by the @sugoi/mongodb package implementation):
Setting connectable model connection name
By default connectable models use connection which labeled by the name "default" (case sensitive).
For changing the connection name use:
Class static method
setConnectionName(name:string)
:@ConnectionName(name:string)
decorator:
Last updated