From 236b4b723c428ada23223c602edcba41533d021e Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Fri, 11 Sep 2020 10:04:07 -0400 Subject: [PATCH] fix(docs): update enum type Signed-off-by: Diana Lau --- README.md | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/README.md b/README.md index d473b6e..d7f36ae 100644 --- a/README.md +++ b/README.md @@ -434,23 +434,7 @@ startTime: Date; ### Enum -Enums are special. Create an Enum using Enum factory: - -```ts -const MOOD = dataSource.EnumFactory('glad', 'sad', 'mad'); -MOOD.SAD; // 'sad' -MOOD(2); // 'sad' -MOOD('SAD'); // 'sad' -MOOD('sad'); // 'sad' - -export class User extends Entity { - //.. - @property({ - type: MOOD, - }) - mood: MOOD; -} -``` +See the [Model ENUM property](https://loopback.io/doc/en/lb4/Model.html#enum-property) for details. ### Default Clause/Constant