Dapper.GraphQL icon indicating copy to clipboard operation
Dapper.GraphQL copied to clipboard

What is point of calling serviceCollection.AddDapperGraphQL?

Open davihar opened this issue 5 years ago • 1 comments

Hi, what is the point of calling serviceCollection.AddDapperGraphQL? Looking at the test project, it does not look like any of the added instances are ever retrieved via serviceProvider.GetRequiredService calls. I've also seen an example work without using AddDapperGraphQL.

Please explain and/or add an example to the readme file explaining why one would use AddDapperGraphGL.

Thanks

davihar avatar Apr 18 '19 23:04 davihar

It appears that AddDapperGraphQL is there to help you add your own DI types so that they can be DI'd correctly. It does this via the DapperGraphQLOptions class.

infogulch avatar Nov 19 '20 22:11 infogulch