Skip to content

UHeadless Options

The UHeadlessOptions class provides configuration options for the UHeadless package. These options can be used to customize various aspects of UHeadless behavior.

UHeadlessOptions Properties

PropertyDescription
PropertyMapUsed to register custom models to specific property values.
DisableAuthorizationDisables authorization for the GraphQL server.
RequestExecutorBuilderUsed to customize the GraphQL server.

Extensions

PropertyDescription
AddDefaultsAdds default property mappings and services to be used for the default queries.
AddAuthAdds the authentication services to the UHeadless package.
AddQueryAdds a query to the GraphQL schema
AddMutationAdds a mutation to the GraphQL schema
AddEditorMappingAdds a mapping of a type to a editor alias.
AddAliasMappingAdds a mapping of a type to a content type alias combined with a property type alias.
RemoveAliasMappingRemoves a alias mapping
RemoveEditorMappingRemoves a editor mapping