We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 203fdf0 commit 62090fcCopy full SHA for 62090fc
packages/repository/src/decorators/relation.decorator.ts
@@ -12,13 +12,13 @@ import {camelCase} from 'lodash';
12
// tslint:disable:no-any
13
14
export enum RelationType {
15
- belongsTo,
16
- hasOne,
17
- hasMany,
18
- embedsOne,
19
- embedsMany,
20
- referencesOne,
21
- referencesMany,
+ belongsTo = 'belongsTo',
+ hasOne = 'hasOne',
+ hasMany = 'hasMany',
+ embedsOne = 'embedsOne',
+ embedsMany = 'embedsMany',
+ referencesOne = 'referencesOne',
+ referencesMany = 'referencesMany',
22
}
23
24
export const RELATIONS_KEY = 'loopback:relations';
0 commit comments