Table of Contents

Class GraphQlEntityMutationExtensions

Namespace
BpNexT.NET.GraphQL.Mutation
Assembly
BpNexT.NET.GraphQL.dll

Typed mutation option extensions for GraphQL entities.

public static class GraphQlEntityMutationExtensions
Inheritance
object
GraphQlEntityMutationExtensions

Methods

RemoveAsync<T>(T, Action<GraphQlRemoveOptions<T>>, CancellationToken)

Removes the entity via GraphQL mutation with typed remove options.

public static Task RemoveAsync<T>(this T entity, Action<GraphQlRemoveOptions<T>> configure, CancellationToken cancellationToken = default) where T : class, IGraphQlRemovable

Parameters

entity T
configure Action<GraphQlRemoveOptions<T>>
cancellationToken CancellationToken

Returns

Task

Type Parameters

T

Remove<T>(T, Action<GraphQlRemoveOptions<T>>)

Removes the entity via GraphQL mutation with typed remove options.

public static void Remove<T>(this T entity, Action<GraphQlRemoveOptions<T>> configure) where T : class, IGraphQlRemovable

Parameters

entity T
configure Action<GraphQlRemoveOptions<T>>

Type Parameters

T

SaveAsync<T>(T, Action<GraphQlSaveOptions<T>>, CancellationToken)

Persists the entity via GraphQL mutation with typed save options.

public static Task SaveAsync<T>(this T entity, Action<GraphQlSaveOptions<T>> configure, CancellationToken cancellationToken = default) where T : class, IGraphQlSavable

Parameters

entity T
configure Action<GraphQlSaveOptions<T>>
cancellationToken CancellationToken

Returns

Task

Type Parameters

T

Save<T>(T, Action<GraphQlSaveOptions<T>>)

Persists the entity via GraphQL mutation with typed save options.

public static void Save<T>(this T entity, Action<GraphQlSaveOptions<T>> configure) where T : class, IGraphQlSavable

Parameters

entity T
configure Action<GraphQlSaveOptions<T>>

Type Parameters

T