财产 'typeKey' 我有了很多realtionships类型错误:无法读取的不确定
{
username: DS.attr('string'),
challenges: DS.hasMany('challenge', {async: true, inverse: 'author'}),
trials: DS.hasMany('trial',{async: true, inverse: 'user'}),
arenasTried: DS.hasMany('arenaTrial',{async: true, inverse: 'user'}),
groups: DS.belongsTo('group',{async: true, inverse: 'founder'}),
group: DS.hasMany('group',{async: true, inverse: 'members'})
}
我的'/ API /用户的路线返回
{
users: [{
_id: "53fcd802647d05af65227306"
arenasTried: [53fcde1006c57af668f39e49]
challenges: []
email: "[email protected]"
exp: 1
group: null
groups: []
role: "student"
rp: 0
trials: [53fcde1006c57af668f39e4a, 53fcde1006c57af668f39e4b]
username: "stud"
}, ...]
}
模型用户我得到一个TypeError:无法读取未定义的属性'typeKey'