Closed pilot22 closed 3 years ago
Resolved by:
import { BaseModel } from '@ioc:Zakodium/Mongodb/Odm'
export default class User extends BaseModel {
public static collectionName = 'users'
public name: number
}
Note that you don't have to set a collectionName
, it will be generated from the constructor's name.
Hello. I don't understand how to import and extend the BaseModel interface
Right now im getting an error while doing this:
Help please