Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mogoosejs

const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/test', {userNewurlParser:true});

const Cat = mongoose.model('Cat', { name: String });

const kitty = new Cat({ name: 'Zildjian' });
kitty.save().then(() => console.log('meow'));
Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #mogoosejs
ADD COMMENT
Topic
Name
8+1 =