标签:occupation example further equals where
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
标签:occupation example further equals where
原文地址:http://longxboy.blog.51cto.com/10152095/1637191