All docs
This doc
Function |
|
---|---|
Description | Returns all the records in a table which match the given primary key value combinations. |
Output | A JSON String array containing the table names in the ‘message’ element within the argument of the success callback. |
var recordInfo = { tableName : "TEST", // table being accessed valueBatches : [ { //key value pairs of the first batch column1 : "value1", column2 : "value2" }, { //key value pairs of the second batch column1 : "anotherValue1", column2 : "anotherValue2" } ], columns : [ "column1"] //interested columns, if null, return all the columns }; client.getWithKeyValues(recordInfo, function(data) { console.log (data["message"]); }, function(error) { console.log("error occured: " + error); });
[{ "id":"14399961246350.13125980939205978", "tableName":"TEST","timestamp":1439996124610, "values":{ "column1":"value1", "column2":"value2" } }, { "id":"14399961246350.13125980939205999", "tableName":"TEST","timestamp":1439996124610, "values":{ "column1":"anotherValue1", "column2":"anotherValue2" } } ]