0

Following the documentation on Batching with @export this tag is not allowed for my server. How can I add the directive so batching is possible?

Bryan Stump
  • 1,419
  • 2
  • 17
  • 26

1 Answers1

2

The export directive has to be registered with the schema builder.

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

This detail is missing in the documentation. I will update the documentation and add this detail.

The directive is in the HotChocolate.Execution.Batching namespace.