Browse Source

chore: updates README.md

e22m4u 2 years ago
parent
commit
956d4e6dc6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      README.md

+ 4 - 1
README.md

@@ -167,7 +167,10 @@ schema.defineModel({
   name: 'city',
   properties: {
     name: DataType.STRING,
-    population: DataType.NUMBER,
+    population: {
+      type: DataType.NUMBER,
+      default: 0,
+    },
   },
 });
 ```