Skip to content

Instantly share code, notes, and snippets.

Created Dec 22, 2012

What would you like to do?
var mongoose = require('mongoose');
var opts = { server: { auto_reconnect: false }, user: 'nodejitsu', pass: 'mypass' }
mongoose.connect('', opts);
var schema = mongoose.Schema({ name: 'string' });
var Cat = mongoose.model('Cat', schema);
var kitty = new Cat({ name: 'Zildjian' }); (err) {
if (err) console.log(err);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.