Ejemplo 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));
        }
Ejemplo 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));
        }