We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34cc271 commit 1a8531fCopy full SHA for 1a8531f
src/JsonApiDotNetCore/Builders/DocumentBuilder.cs
@@ -276,6 +276,8 @@ private ResourceIdentifierObject GetIndependentRelationshipIdentifier(HasOneAttr
276
return null;
277
278
var relatedContextEntity = _jsonApiContext.ContextGraph.GetContextEntity(hasOne.Type);
279
+ if (relatedContextEntity == null) // TODO: this should probably be a debug log at minimum
280
+ return null;
281
282
return new ResourceIdentifierObject
283
{
0 commit comments