How do I use the DS.RESTAdapter to eager load in association


#1

using 1.0.0-beta.7

I’m trying to define a hasMany on a model and are trying to understand how to do this

I’ve nested the json - its not a sibling ie.

{"user":
        [{"id":1,"name":"dolores.","email":"kuhlman@stha123n.com",
        "usertag":
                 [{"id":16,"userid":1}]}]}

In troubleshooting I made a UserSerializer and implemented the normalise function. if I let the payload pass through with the child relation or even manually push it on the payload I get error ‘store’ undefined.

foreach on the payload.usertag shows

Object {id: 16, userid: 1}

Am i doing it wrong?

Cheers