-
-
Notifications
You must be signed in to change notification settings - Fork 158
Determine Future of RelationshipsToUpdate #331
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
Comments
The JsonApiDotNetCore/src/JsonApiDotNetCore/Serialization/JsonApiDeSerializer.cs Lines 229 to 232 in 271693a
In the case of
JsonApiDotNetCore/src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs Lines 94 to 114 in 4481147
JsonApiDotNetCore/src/JsonApiDotNetCore/Services/IJsonApiContext.cs Lines 54 to 107 in 4481147
Perhaps the oversight is not deprecating the This change was made in v2.3.2 via #314. Was this a breaking change for you? |
Not necessarily a breaking change just did the assumption RelationshipsToUpdate contained all relations send in a PATCH request. We are not directly connected to the dbContext so i need to process the relations send in the patch request manually. Ill use HasOneRelationshipPointers and HasManyRelationshipPointers to update my entities. |
@Fireblade954 I understand the confusion. I'm going to leave this issue open so we can track plans on improving this experience. I've also created json-api-dotnet/json-api-dotnet.github.io#6 to track documentation improvements. |
Outdated |
_jsonApiContext.RelationshipsToUpdate is not set for HasMany relations on PATCH requests?
in function SetHasOneRelationship _jsonApiContext.RelationshipsToUpdate is set.
JsonApiDotNetCore/src/JsonApiDotNetCore/Serialization/JsonApiDeSerializer.cs
Line 232 in 271693a
in function SetHasManyRelationship _jsonApiContext.RelationshipsToUpdate is NOT set.
is this by design? or forgotten?
The text was updated successfully, but these errors were encountered: