public async Task <Recall> UpdateRecallAsync( [GraphQLType(typeof(UpdateRecallInputType))][GraphQLName("input")] UpdateRecallCommand input, [Service] ISheaftMediatr mediatr, RecallsByIdBatchDataLoader dataLoader, CancellationToken token) { await ExecuteAsync(mediatr, input, token); return(await dataLoader.LoadAsync(input.RecallId, token)); }
public async Task <Recall> CreateRecallAsync( [GraphQLType(typeof(CreateRecallInputType))][GraphQLName("input")] CreateRecallCommand input, [Service] ISheaftMediatr mediatr, RecallsByIdBatchDataLoader dataLoader, CancellationToken token) { var result = await ExecuteAsync <CreateRecallCommand, Guid>(mediatr, input, token); return(await dataLoader.LoadAsync(result, token)); }