Skip to content

Commit d7e71d8

Browse files
committed
fix: dont include when IsInclude is false
1 parent d089461 commit d7e71d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/JsonApiDotNetCore/Hooks/Traversal/TraversalHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ HashSet<TEntity> ProcessEntities<TEntity>(IEnumerable<TEntity> incomingEntities)
185185
var contextEntity = _graph.GetContextEntity(type);
186186
foreach (RelationshipAttribute attr in contextEntity.Relationships)
187187
{
188+
if (!attr.CanInclude) continue;
188189
if (!RelationshipProxies.TryGetValue(attr, out RelationshipProxy proxies))
189190
{
190191
DependentType dependentType = GetDependentTypeFromRelationship(attr);

0 commit comments

Comments
 (0)