var mongoose = require('mongoose') mongoose.connect("mongodb://localhost/oauth_test"); var userSchema = new mongoose.Schema({ uid: Number }); // mogooseããfindAndModifyãã¿ããªãã®ã§è¿½å userSchema.statics.findAndModify = function(query, sort, doc, options, callback) { return this.collection.findAndModify(query, sort, doc, options, callback); }; var User = mongoose.model('User', userSchema); var passport =
{{#tags}}- {{label}}
{{/tags}}