Skip to content

Error loading schema when using a private constructor #4247

Answered by michaelstaib
RomaKV asked this question in Q&A
Discussion options

You must be logged in to vote

The issue in your example is that you are using BookType as the query type.

The GraphQL root types must provide a public constructor or you can provide a custom DI registration in which case we will use your DI registration instead of looking for a constructor.

Why are you using book as a query type, this makes not really sense.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaelstaib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants