Browse Source

chore: updates README.md

e22m4u 2 years ago
parent
commit
82126c3fff
1 changed files with 9 additions and 2 deletions
  1. 9 2
      README.md

+ 9 - 2
README.md

@@ -109,14 +109,21 @@ schema.defineDatasource({
 который будет использован репозиторием для доступа к коллекции.
 
 ```js
-// объявление модели "city"
+// объявление модели "region"
 schema.defineModel({
-  name: 'city', // название новой модели
+  name: 'region', // название новой модели
   properties: { // поля модели
     name: DataType.STRING,
     population: DataType.NUMBER,
   },
 });
+
+// документ может выглядеть так
+// {
+//   "id": 1,
+//   "name": "Asia",
+//   "population": 4753079727
+// }
 ```
 
 **Параметры модели**