Closed will0321 closed 9 years ago
yes.
Is it not working? It should work. Please let me know!
It can't work using update({"UserName":"Will"},{"$set" : {age:"30"}})
sorry ,it is working now.
Yay! Closing!
If you are looking for an easier database you might want to check out my most recent project http://github.com/amark/gun . :)
i have a record like this: {"UserName":"Will","Sex":1}. then i want to add a "Age" filed,then this record is like this:{"UserName":"Will","Sex":1,age:"30"}.
i can solve it like this : update({"UserName":"Will"},{"UserName":"Will","Sex":1,age:"30"}). but this method ,must write all fieds. In mongodb ,"update({"UserName":"Will"},{"$set" : {age:"30"}})" can add field. Mongous can add field through similars method?