We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var parent = new Parent { Name = "Alice" }; var bob = new Person { Name = "Bob", Parent = parent }; var bill = new Person { Name = "Bill", Parent = parent }; context.Parents.Add(parent); context.People.Add(bob); context.People.Add(bill); context.SaveChanges();
GET /api/v1/people?include=parent HTTP/1.1 Host: localhost:5000
returns duplicate entries for Alice in the included document:
Alice
{ "data": [ ... ], "included": [ { "type": "parents", "id": "3", "attributes": { "name": "Alice" }, "relationships": { "people": { "links": { "self": "http://localhost:5000/api/v1/parents/3/relationships/people", "related": "http://localhost:5000/api/v1/parents/3/people" } } } }, { "type": "parents", "id": "3", "attributes": { "name": "Alice" }, "relationships": { "people": { "links": { "self": "http://localhost:5000/api/v1/parents/3/relationships/people", "related": "http://localhost:5000/api/v1/parents/3/people" } } } } ] }
Investigation:
Thanks @grw300 for reporting this!
The text was updated successfully, but these errors were encountered:
Merge pull request #149 from Research-Institute/hotfix/#148
e300bef
fix(DocumentBuilder): do not include entities twice
Merge branch 'hotfix/#148' into develop
4a499f2
Successfully merging a pull request may close this issue.
returns duplicate entries for
Alice
in the included document:Investigation:
Thanks @grw300 for reporting this!
The text was updated successfully, but these errors were encountered: