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?
Asked
Active
Viewed 394 times
1 Answers
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.

Michael Ingmar Staib
- 1,721
- 9
- 22