I have this function on parse cloudcode:
Parse.Cloud.define("testfunction", function(request, response) {
var username = request.params.username
var testObject = Parse.Object.extend('Test');
var query = new Parse.Query(testObject);
query.equalTo('username', username);
// PFObject "Test" in the table has columns A,B and C
// how do I tell the query that in the final result I send back
// in the response I only want filed A?
query.find({
success:function(results) {
response.success(results)
},
error:function() {
response.error('Could not find channels')
}
})
});
I am not sure how to tell the query to only return filed A and not field B and C as part of any of the PFObjects that come back from the query?
thank you