{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/3ce102857735fe839473c5f02333011b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3ce102857735fe839473c5f02333011b","url":"https://api.github.com/users/ragefuljoe","login":"ragefuljoe","id":1095303},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-10T15:59:47Z","comments":1,"closed_at":"2011-11-10T15:59:47Z","url":"https://api.github.com/repos/christkv/node-mongodb-native/issues/397","body":"I'm trying to use upserts with dynamic key:value pairs. However I can't seem to get the $inc call to use variables..it just uses whatever I put there. \r\n\r\nexample:\r\ncollection.update( {_id:id}, { '$inc' : { name : 1 } } , {upsert:true}  ); \r\n\r\nWhat I want is to dynamically add or increment names in the given doc.","html_url":"https://github.com/christkv/node-mongodb-native/issues/397","number":397,"title":"unable to use $inc with dynamic values","id":2177508,"created_at":"2011-11-08T18:24:22Z"},"action":"closed"}