You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug when including nested reources. Consider the following example:
class Book {
// This is optional
[HasOne("Author")]
public virtual Author Author { get; set; }
}
class Author {
[HasMany("Image")]
public virtual IList<Image> Images { get; set; }
}
class Image {
}
Now when requesting Books with ?Include="Author.Images" An exception is thrown from the ResourceGraph, when a book doesn't have an author. Because the parent entity is null.
I found a bug when including nested reources. Consider the following example:
Now when requesting Books with
?Include="Author.Images"
An exception is thrown from the ResourceGraph, when a book doesn't have an author. Because the parent entity is null.JsonApiDotNetCore/src/JsonApiDotNetCore/Internal/ResourceGraph.cs
Lines 118 to 120 in 8570b21
The text was updated successfully, but these errors were encountered: