Browse Source

chore: updates README.md

e22m4u 2 years ago
parent
commit
a8381c5bf4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      README.md

+ 3 - 0
README.md

@@ -227,12 +227,15 @@ const rep = schema.getRepository('place');
 Возвращает добавленный документ.  
 
 ```js
+// вызываем метод `create` с передачей состава
+// нового документа первым параметром
 const person = await rep.create({
   name: 'Rick Sanchez',
   dimension: 'C-137',
   age: 67,
 });
 
+// выводим добавленный документ
 console.log(person);
 // {
 //   id: 1,