根據以下this指南,我已經在AWS Elastic Beanstalk上設置了Parse-Server。然後我寫了一個雲代碼函數,它從特定的類/集合中獲取單個記錄。該集合包含約20列。但是,作爲查詢結果提取的對象只包含大約8列。我已確保該記錄確實在查詢中遺漏了列中的數據。我在這裏丟失了些什麼,或者在Parse中有一些限制嗎?有沒有辦法強制Parse獲取這些列?解析服務器雲代碼查詢不會返回所有列
Parse.Cloud.define('confirmAppointment', function(request, response) {
var staffId = request.params.staffId;
var appointmentId = request.params.appointmentId;
var appointmentRequest = Parse.Object.extend("AppointmentRequest");
appointmentRequest.id = appointmentId;
appointmentRequest.staffId = staffId;
var query = new Parse.Query(appointmentRequest);
query.first({
useMasterKey: true,
success: function(appointment) {
if (appointment) {
// these fields are not found in the fetched appointment object
// they do exist however in mongodb
var requesterUserId = appointment.get("requesterUserId");
var staffUserId = appointment.get("staffUserId");
var staffName = appointment.get("staffNameEn");
...
}
}
...
});
});
其他對象是否缺少列指針類型? – kRiZ
不是。其中一些是字符串類型,一些是數字類型。 –