Hot Chocolatev12
This is documentation for v12, which is no longer actively maintained.
For up-to-date documentation, see the latest stable version.

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";