-
-
Notifications
You must be signed in to change notification settings - Fork 158
Null sideloaded relationships including links #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After discussing with dgeb, more research needs to be done to ensure this is not a client issue.
|
Wouldn't it make sense to add
Just adding a Is there an easy way to add |
@jaredcnance I'm also experiencing this issue, so I figured I would add to the open issue. I'm also using Ember Data and have relationships that can sometimes be null. When one of my relationships is null, the returned data looks like this:
Since I'm displaying information in a paginated table, whenever the relationship is null and only the links are included, Ember will make a get request for every row which just returns:
I'm hoping to avoid having the front end do a get request for every relationship that's null and returns a link with no data. I'm not sure if it should be handled here in the back end, or if it should be handled with Ember Data, so I figured I would share my information regarding this issue as well. Is there an easy way to add |
This has been fixed in the new serialization layer. See #558. Specifically, see the |
if
User.Profile == null
we will still return the profile linkThe text was updated successfully, but these errors were encountered: