Hot Chocolatev13

Schema Options

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

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 behavior. The options can be set during schema creation.

.ModifyOptions(opt =>
opt.QueryTypeName = "Foo";