1const mongoose = require('mongoose');
2mongoose.connect('mongodb://localhost:27017/test', {useNewUrlParser: true, useUnifiedTopology: true});
3
4const Cat = mongoose.model('Cat', { name: String });
5
6const kitty = new Cat({ name: 'Zildjian' });
7kitty.save().then(() => console.log('meow'));