v3.rc5 js-data-http rc.2
my API responds with a nested resource e.g
/user
responds with a nested profile."profile" and "user" are two mappers with respective relations
"user":
{
"id": 1,
"name": "Peter",
"profile": {
"id": 5
"dob": "today"
}
}
"profile" doesn't get added to the cache. I can call user.profile, but store.cachedFind('profile', 5)
returns undefined.
calling manually
store.addToCache('profile', user.profile)
would not throw any errors but also wouldn't add it to the cache.
What am I doing wrong? Please help. Thanks.