GraphQL with ASP.NET Core (Part- III : Dependency Injection)

Read the previous part - GraphQL with ASP.NET Core Part- II : Middleware The letter 'D' in SOLID stands for Dependency inversion principle. The principle states, A. High-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend on details. Details should depend on abstractions. - Wikipedia Newing up instances causes strict coupling between separate code modules. To keep them decoupled from each other, we follow the 'Dependency Inversion Principle'. In this way the modules are not dependent on each other's concrete implementation rather…

Keep reading