Closed adomado closed 12 years ago
Hi,
I've just pushed update (v2.0.7) which should support what you've found missing (it wasn't been supported earlier :)
Kind regards, Boris
On Fri, Sep 16, 2011 at 3:01 PM, AdoMado.com reply@reply.github.com wrote:
Hi,
If I have a collection called as "unicorns" I want to increment a counter called "hit" for each unicorn which is male
$j.ajax({ url : "http://localhost:3000/test/unicorns?query=" + encodeURI(JSON.stringify({gender : "m"})), data : JSON.stringify({'$inc' : {hits: 1}}), type : "PUT", contentType : "application/json", success : function(d) { console.log("Success"); console.log(d); }, error : function(d) { console.log("error"); console.log(d) } });
Is this the correct way to do it? My counters are not updating...
Thanks!
Reply to this email directly or view it on GitHub: https://github.com/ActiveUnits/mongodb-rest/issues/1
Awesome! Will check & let you know.
Thanks a ton!
Works perfect. Thanks!
Hi, I'm glad to hear that, please keep in mind that I've added some more upgrades and fixes, so use the latest version from master...
On Mon, Sep 19, 2011 at 8:06 AM, AdoMado.com reply@reply.github.com wrote:
Works perfect. Thanks!
Reply to this email directly or view it on GitHub: https://github.com/ActiveUnits/mongodb-rest/issues/1#issuecomment-2130442
Doing that already :) Cheers!
Hi,
If I have a collection called as "unicorns" I want to increment a counter called "hit" for each unicorn which is male
Is this the correct way to do it? My counters are not updating...
Thanks!