Ray's playground

 

2010年10月1日

Querying(Chapter 4 of MongoDB The Definitive Guild)

摘要: Sometimes, you do not need all of the key/value pairs in a document returned. If thisis the case, you can pass a second argument to find (or findOne) specifying the keys youwant. This reduces both the... 阅读全文

posted @ 2010-10-01 11:16 Ray Z 阅读(186) 评论(0) 推荐(0) 编辑

Creating, Updating, and Deleting Documents(Chapter 3 of MongoDB The Definitive Guild)

摘要: "$set" sets the value of a key. If the key does not yet exist, it will be created. This canbe handy for updating schema or adding user-defined keys.  The "$inc" modifier can be used to change the valu... 阅读全文

posted @ 2010-10-01 09:16 Ray Z 阅读(120) 评论(0) 推荐(0) 编辑

导航