This is documentation for v10, which is no longer actively maintained.
For up-to-date documentation, see the latest 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 behaviour. The options can be set during schema creation.

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