Dapper.GraphQL
Dapper.GraphQL copied to clipboard
What is point of calling serviceCollection.AddDapperGraphQL?
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
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.