I have a model user that has many 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'})
}
my '/api/users' route returns
{
users: [{
_id: "53fcd802647d05af65227306"
arenasTried: [53fcde1006c57af668f39e49]
challenges: []
email: "[email protected]"
exp: 1
group: null
groups: []
role: "student"
rp: 0
trials: [53fcde1006c57af668f39e4a, 53fcde1006c57af668f39e4b]
username: "stud"
}, ...]
}
I get a TypeError: Cannot read property 'typeKey' of undefined