
Node.js
18
Вклад в тег
fetch('https://jsonplaceholder.typicode.com/todos/4')
.then((response) => {
response.json().then(console.log);
return fetch('https://jsonplaceholder.typicode.com/todos/5')
})
.then((response) => {
response.json().then(console.log);
return fetch('https://jsonplaceholder.typicode.com/todos/6')
})
.then(response => response.json().then(console.log))
db.Clients.find({}).forEach(el => {
db.Clients.updateOne({ _id: el._id }, { $set: { phone: [el.phone] }})
})