From 9788c779c61919cb0e046cd933ca93ba50638f3d Mon Sep 17 00:00:00 2001 From: Tim Maes <91606949+Tim-Maes@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:32:52 +0100 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d606fed..0c0ee98 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,9 @@ Remove the example queries/mutation/repositories etc and implement your own. In the core layer we have a custom lightweight handler implementation. These are `Handler` for querying data without parameters, and `Handler` for querying or mutating data with parameters. -Handler is a abstract class so we can leverage the validation method leveraging FluentValidation. You still need to define a interface for DI purpose. +Handler is a abstract class so we can leverage the validation method leveraging FluentValidation. + +You still need to define a interface for dependency injection, the handlers are automatically registered as scoped. Since we don't use `AutoMapper` to map input types to output types, we just write an extension method `ToOutput()` that maps `TInput` to `ToOutput()`.