Skip to content

Instantly share code, notes, and snippets.

@ndarilek
Created September 2, 2010 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ndarilek/0aad3d4fe2e612f917d0 to your computer and use it in GitHub Desktop.
Save ndarilek/0aad3d4fe2e612f917d0 to your computer and use it in GitHub Desktop.
mongoose = require("mongoose").Mongoose
db = mongoose.connect('mongodb://localhost/utterance')
exports.User = User = db.model("User")
mongoose = require("mongoose").Mongoose
mongoose.model("user", {
properties: [
"jid"
]
})
u = new User()
u.jid = "test@test"
u.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment