V
Size: a a a
V
V
IN
V
onclick="savePicture(render)"
IN
IN
НС
НС
const mongo = require('mongodb').MongoClient;TypeError: Cannot read property 'close' of undefined
const config = require('./config.json');
mongo.connect(config.URI).then(client => {
// console.log(client);
const db = client.db("INDFLORIST");
const collection = db.collection('API');
return collection.insertOne({name: 'Roger'});
})
.then(function(result) {
console.log(result);
}).then(client => {
client.close();
})
.catch(err => {
console.error("Ошибка: ", err);
});
k
НС
НС
k
k
НС
НС
onclick="savePicture(render)"
A
A
D
PC