-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cannot include same type twice #104
Comments
What do you mean by "blow away"? I would expect this to include the base author ( |
This would not be the case. The relationships are removed. |
Are you providing a sparse fieldset as well? Otherwise that would be a bug. |
No, no sparse fieldset. |
Could you provide a failing spec for this if you have one handy? I'll investigate and fix right now. |
Not one for this repo but next best thing. This reproduces in my sample app. If you run |
Otherwise it will be a little while before I can get a spec for this repo. |
Does the created resource actually respond to |
Ah, yes, that's an eventual issue but not relevant to the immediate one. It's originally position belongs_to employee, but as part of the commit I made it have many employees as well (at one point I was thinking it might be has-many specific). So it responds to |
Imagine a book has multiple authors. You want to fetch an author, their books, and all the other co-authors for those books.
/authors/123?include=books.authors
Currently, if you do this, it will blow away all relationships on
books
instead of rendering correctly.The text was updated successfully, but these errors were encountered: