首页 > 解决方案 > 无法从类型引用“输出:选项”中推断或解析模式类型`

问题描述

我有一个类包含以下代码。

public class ResponderSettings
{
  public string DefaultCurrency { get; set; }
  public Option<Field> CustomField { get; set; }
}

我写了一个graphQL端点来获取上述信息,但我面临以下问题。

    [18:07:02 ERR] An unhandled exception has occurred while executing the request.
HotChocolate.SchemaException: For more details look at the `Errors` property.
1. Unable to infer or resolve a schema type from the type reference `Output: Option<Field>`.

有人可以帮我解决这个问题吗?

标签: c#

解决方案


推荐阅读