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.
2 parents 68e671a + 236b4b7 commit c681b2dCopy full SHA for c681b2d
README.md
@@ -434,23 +434,7 @@ startTime: Date;
434
435
### Enum
436
437
-Enums are special. Create an Enum using Enum factory:
438
-
439
-```ts
440
-const MOOD = dataSource.EnumFactory('glad', 'sad', 'mad');
441
-MOOD.SAD; // 'sad'
442
-MOOD(2); // 'sad'
443
-MOOD('SAD'); // 'sad'
444
-MOOD('sad'); // 'sad'
445
446
-export class User extends Entity {
447
- //..
448
- @property({
449
- type: MOOD,
450
- })
451
- mood: MOOD;
452
-}
453
-```
+See the [Model ENUM property](https://loopback.io/doc/en/lb4/Model.html#enum-property) for details.
454
455
### Default Clause/Constant
456
0 commit comments