0
我試圖寫一個分析查詢的代碼解析獲取JSON子對象目錄中的Node.js
exports.getProfile = function(req, res) {
var Profile = Parse.Object.extend("Profile");
var query = new Parse.Query(Profile);
query.equalTo("username", "philfishbein");
query.find({
success: function(object) {
console.log(object);
},
error: function(error) {
console.log("error!");
}
});
}
除其他事項外,輸出:但是當我改變
[ { _serverData:
{ age: '17',
email: '[email protected]',
facebook: 'philfishbein',
fullname: 'Phil Fishbein',
github: 'fishbein',
languages: [Object],
location: 'New Jersey',
twitter: 'fishbein',
username: 'philfishbein',
years: '5' },
...} ]
日誌語句爲object._serverData
,它返回undefined
。我究竟做錯了什麼?