Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }