I’m working with a relatively complicated domain model that is using asynchronous hasMany relationships. In my user interface, I would like to allow the user to edit the first item in that relationship. However, I’m struggling to unwrap the promise and get to the first item. The each helper is able to handle these relationships, but since I need to deal with the first item, it won’t help in this case. I tried the “with” helper, but it didn’t seem to properly unwrap the object either.
Can anyone suggest the proper way to handle these types of Ember Data relationships?