Exemplo n.º 1
0
        public async Task <User> UpdateUserPictureAsync(
            [GraphQLType(typeof(UpdateUserPictureInputType))][GraphQLName("input")]
            UpdateUserPreviewCommand input, [Service] ISheaftMediatr mediatr,
            UsersByIdBatchDataLoader usersDataLoader, CancellationToken token)
        {
            await ExecuteAsync <UpdateUserPreviewCommand, string>(mediatr, input, token);

            return(await usersDataLoader.LoadAsync(input.UserId, token));
        }