Interface IRemoveFromRelationshipService<TResource, TId>
- Namespace
- JsonApiDotNetCore.Services
- Assembly
- JsonApiDotNetCore.dll
public interface IRemoveFromRelationshipService<TResource, in TId> where TResource : class, IIdentifiable<in TId>
Type Parameters
TResourceTId
Methods
RemoveFromToManyRelationshipAsync(TId, string, ISet<IIdentifiable>, CancellationToken)
Handles a JSON:API request to remove resources from a to-many relationship.
Task RemoveFromToManyRelationshipAsync(TId leftId, string relationshipName, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
Parameters
leftIdTIdIdentifies the left side of the relationship.
relationshipNamestringThe relationship to remove resources from.
rightResourceIdsISet<IIdentifiable>The set of resources to remove from the relationship.
cancellationTokenCancellationTokenPropagates notification that request handling should be canceled.