public async Task <Returnable> UpdateReturnableAsync( [GraphQLType(typeof(UpdateReturnableInputType))][GraphQLName("input")] UpdateReturnableCommand input, [Service] ISheaftMediatr mediatr, ReturnablesByIdBatchDataLoader returnablesDataLoader, CancellationToken token) { await ExecuteAsync(mediatr, input, token); return(await returnablesDataLoader.LoadAsync(input.ReturnableId, token)); }
public async Task <Returnable> CreateReturnableAsync( [GraphQLType(typeof(CreateReturnableInputType))][GraphQLName("input")] CreateReturnableCommand input, [Service] ISheaftMediatr mediatr, ReturnablesByIdBatchDataLoader returnablesDataLoader, CancellationToken token) { var result = await ExecuteAsync <CreateReturnableCommand, Guid>(mediatr, input, token); return(await returnablesDataLoader.LoadAsync(result, token)); }