首页 > 其他 > 详细

mongoose学习

时间:2015-04-22 18:43:20      阅读:245      评论:0      收藏:0      [点我收藏+]

An instance of Query was returned which allows us to build up our query. Taking this example further:

Person
.find({ occupation: /host/ })
.where(‘name.last‘).equals(‘Ghost‘)
.where(‘age‘).gt(17).lt(66)
.where(‘likes‘).in([‘vaporizing‘, ‘talking‘])
.limit(10)
.sort(‘-occupation‘)
.select(‘name occupation‘)
.exec(callback);


本文出自 “mongoose学习” 博客,请务必保留此出处http://longxboy.blog.51cto.com/10152095/1637191

mongoose学习

原文:http://longxboy.blog.51cto.com/10152095/1637191

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!