如何解决异常 HotChocolate.SchemaException: 'Unable to create instance of type ``.' GraphQl-Hotchocolate

How to resovle exeption HotChocolate.SchemaException: 'Unable to create instance of type ``.' GraphQl-Hotchocolate

我是 Hotchocolate GraphQL 框架的新手,正在尝试创建小型解决方案,只是为了查看和了解它的工作原理以及框架的功能。我不太明白如何将此框架与 EF 核心 DbContext 一起使用以及如何在 startup.cs class 中注册依赖项。

如果有人遇到同样的问题或者可以解释如何以正确的方式做到这一点, 太好了,在此先感谢。

Check out the code

GRaphQL-Hotchocolate 框架在尝试创建模式时抛出异常。 Exeption Image

有很多问题...

我已修复它们,项目现在运行: https://github.com/haris-begluk/Graphql-Hotchocolate-proj/pull/1

playground 在 http://localhost:[port]/graphql/playground.

下运行

玩得开心。