Table of Contents

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 TId

Identifies the left side of the relationship.

relationshipName string

The relationship to remove resources from.

rightResourceIds ISet<IIdentifiable>

The set of resources to remove from the relationship.

cancellationToken CancellationToken

Propagates notification that request handling should be canceled.

Returns

Task