我按照本指南在 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");
...
}
}
...
});
});