Class GraphQlEntityMutationExtensions
Typed mutation option extensions for GraphQL entities.
public static class GraphQlEntityMutationExtensions
- Inheritance
-
objectGraphQlEntityMutationExtensions
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
entityTconfigureAction<GraphQlRemoveOptions<T>>cancellationTokenCancellationToken
Returns
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
entityTconfigureAction<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
entityTconfigureAction<GraphQlSaveOptions<T>>cancellationTokenCancellationToken
Returns
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
entityTconfigureAction<GraphQlSaveOptions<T>>
Type Parameters
T