File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,5 @@ declare module '@ioc:Zakodium/Mongodb/Odm' {
45
45
) => DecoratorFn ;
46
46
47
47
export const field : FieldDecorator ;
48
+ export const computed : ComputedDecorator ;
48
49
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { getMongodbModelAuthProvider } from '../src/Auth/MongodbModelAuthProvide
10
10
import { Database } from '../src/Database/Database' ;
11
11
import createMigration from '../src/Migration' ;
12
12
import { BaseModel , BaseAutoIncrementModel } from '../src/Model/Model' ;
13
- import { field } from '../src/Odm/decorators' ;
13
+ import { field , computed } from '../src/Odm/decorators' ;
14
14
15
15
export default class MongodbProvider {
16
16
public constructor ( protected app : ApplicationContract ) { }
@@ -30,6 +30,7 @@ export default class MongodbProvider {
30
30
BaseAutoIncrementModel :
31
31
BaseAutoIncrementModel as unknown as typeof BaseAutoIncrementModelType ,
32
32
field,
33
+ computed,
33
34
} ;
34
35
} ) ;
35
36
}
You can’t perform that action at this time.
0 commit comments