Skip to content
Permalink
Browse files

mongodb invalid operator

  • Loading branch information...
topwood committed Jan 18, 2016
1 parent 837cdc8 commit 547d876e49cfe88f2f22962de93eb79d8ccf0efa
Showing with 3 additions and 2 deletions.
  1. +1 −1 model-mongo2.1/app/home/controller/index.js
  2. +2 −1 model-mongo2.1/package.json
@@ -9,7 +9,7 @@ module.exports = think.controller(Base, {
*/
indexAction: function(self){
var model = this.model('demo');
model.where({id: {$eq: 6}}).find().then(function(data){
model.where({id: 6}).find().then(function(data){
console.log(data);
})
//auto render template file index_index.html
@@ -6,6 +6,7 @@
"start": "node www/development.js"
},
"dependencies": {
"mongodb": "^2.0.48",
"thinkjs": "2.x.x"
}
}
}

0 comments on commit 547d876

Please sign in to comment.
You can’t perform that action at this time.