Skip to content

Commit cfa08ce

Browse files
authored
fix: add missing relations to plugin scope (#103)
1 parent 8d5245a commit cfa08ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/plugin/Plugin.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import { Boolean } from '../model/attributes/types/Boolean'
1010
import { Uid } from '../model/attributes/types/Uid'
1111
import { Relation } from '../model/attributes/relations/Relation'
1212
import { HasOne } from '../model/attributes/relations/HasOne'
13+
import { BelongsTo } from '../model/attributes/relations/BelongsTo'
1314
import { HasMany } from '../model/attributes/relations/HasMany'
15+
import { HasManyBy } from '../model/attributes/relations/HasManyBy'
16+
import { MorphOne } from '../model/attributes/relations/MorphOne'
1417
import { Repository } from '../repository/Repository'
1518
import { Interpreter } from '../interpreter/Interpreter'
1619
import { Query } from '../query/Query'
@@ -42,7 +45,10 @@ export interface VuexORMPluginComponents {
4245
Uid: typeof Uid
4346
Relation: typeof Relation
4447
HasOne: typeof HasOne
48+
BelongsTo: typeof BelongsTo
4549
HasMany: typeof HasMany
50+
HasManyBy: typeof HasManyBy
51+
MorphOne: typeof MorphOne
4652
Repository: typeof Repository
4753
Interpreter: typeof Interpreter
4854
Query: typeof Query
@@ -72,7 +78,10 @@ export const components: VuexORMPluginComponents = {
7278
Uid,
7379
Relation,
7480
HasOne,
81+
BelongsTo,
7582
HasMany,
83+
HasManyBy,
84+
MorphOne,
7685
Repository,
7786
Interpreter,
7887
Query,

0 commit comments

Comments
 (0)