public async Task <Store> UpdateStoreAsync([GraphQLType(typeof(UpdateStoreInputType))][GraphQLName("input")] UpdateStoreCommand input, [Service] ISheaftMediatr mediatr, StoresByIdBatchDataLoader storesDataLoader, CancellationToken token) { await ExecuteAsync(mediatr, input, token); return(await storesDataLoader.LoadAsync(input.StoreId, token)); }
public async Task <Store> RegisterStoreAsync([GraphQLType(typeof(RegisterStoreInputType))][GraphQLName("input")] RegisterStoreCommand input, [Service] ISheaftMediatr mediatr, StoresByIdBatchDataLoader storesDataLoader, CancellationToken token) { var result = await ExecuteAsync <RegisterStoreCommand, Guid>(mediatr, input, token); return(await storesDataLoader.LoadAsync(result, token)); }