Interface IRemoveFromRelationshipService<TResource, TId>
- Namespace
- JsonApiDotNetCore.Services
- Assembly
- JsonApiDotNetCore.dll
public interface IRemoveFromRelationshipService<TResource, in TId> where TResource : class, IIdentifiable<in TId>
Type Parameters
TResource
TId
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
leftId
TIdIdentifies the left side of the relationship.
relationshipName
stringThe relationship to remove resources from.
rightResourceIds
ISet<IIdentifiable>The set of resources to remove from the relationship.
cancellationToken
CancellationTokenPropagates notification that request handling should be canceled.