Schema Options

Hot Chocolate distinguishes between schema and execution options. Schema options relate to the type system and execution options to the query engine.

MemberTypeDefaultDescription
QueryTypeNamestringQueryThe name of the query type.
MutationTypeNamestringMutationThe name of the mutation type.
SubscriptionTypeNamestringSubscriptionThe name of the subscription type.
StrictValidationbooltrueDefines if the schema is allowed to have errors like missing resolvers etc.

The schema options allow to alter the overall execution behaviour. The options can be set during schema creation.

C#
SchemaBuilder.New()
.ModifyOptions(opt =>
{
opt.QueryTypeName = "Foo";
})
...
.Create()