$.ajax( { url: 'https://api.mlab.com/api/1/databases/my-db/collections/my-coll?apiKey=myAPIKey&q={"_id":1234}', data: JSON.stringify( { "$set" : { "x" : 3 } } ), type: "PUT", contentType: "application/json" } );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)