【问题标题】:HotChocolate Batching error: "The specified directive `export` is not supported by the current schema."HotChocolate 批处理错误:“当前架构不支持指定的指令 `export`。”
【发布时间】:2019-09-03 14:13:14
【问题描述】:

按照文档on Batching with @export,我的服务器不允许使用此标签。如何添加指令以便可以进行批处理?

【问题讨论】:

    标签: hotchocolate


    【解决方案1】:

    导出指令必须在架构生成器中注册。

    SchemaBuilder.New()
        .AddType<ExportDirectiveType>()
        ...
        .Create();
    

    文档中缺少此详细信息。我将更新文档并添加此详细信息。

    该指令位于HotChocolate.Execution.Batching 命名空间中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-26
      • 2018-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-09
      • 1970-01-01
      • 2019-03-22
      相关资源
      最近更新 更多