|
@@ -288,14 +288,16 @@ console.log(result);
|
|
|
// "address": "Sukhumvit 19 Alley"
|
|
// "address": "Sukhumvit 19 Alley"
|
|
|
// }
|
|
// }
|
|
|
const result = rep.patchById(place.id, {
|
|
const result = rep.patchById(place.id, {
|
|
|
- address: 'Moo 6'
|
|
|
|
|
|
|
+ address: 'Moo 6',
|
|
|
|
|
+ city: 'Pattaya',
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
console.log(result);
|
|
console.log(result);
|
|
|
// {
|
|
// {
|
|
|
// "id": 1,
|
|
// "id": 1,
|
|
|
// "name": "Terminal 21 Shopping Mall",
|
|
// "name": "Terminal 21 Shopping Mall",
|
|
|
-// "address": "Moo 6"
|
|
|
|
|
|
|
+// "address": "Moo 6",
|
|
|
|
|
+// "city": "Pattaya"
|
|
|
// }
|
|
// }
|
|
|
```
|
|
```
|
|
|
|
|
|