Let's say I have a base class and a subclass as follows
class MyBaseClass {
#collectionName;
constructor(collectionName) {
this.#collectionName = collectionName;
}
getCollection() {
return this.#collection;
}
}
class MySubClass extends MyBaseClass {
constructor() {
super("users");
}
}
I use awilix.InjectionMode.CLASSIC. When I try to resolve and instance of MySubClass, I get a resolution error which basically says Could not resolve 'collectionName'. MySubClass does not need constructor parameters to be passed in order to be instantiated. What gives?
Let's say I have a base class and a subclass as follows
I use
awilix.InjectionMode.CLASSIC. When I try to resolve and instance ofMySubClass, I get a resolution error which basically saysCould not resolve 'collectionName'.MySubClassdoes not need constructor parameters to be passed in order to be instantiated. What gives?