type

Options

type Options struct { Path string MaxBodyBytes int64 MaxVariableBytes int MaxDepth int MaxAliases int MaxComplexity int MaxListLimit int AllowIntrospection bool // Resources optionally renames or suppresses generated surfaces by // collection/global slug. Omitted resources use their manifest labels and // expose both queries and mutations. Resources map[string]ResourceOptions Queries []ExtensionField Mutations []ExtensionField ValidationRules []enginegraphql.ValidationRuleFn }

Route, request budgets, resource overrides, extensions, and validation rules.

Source plugins/graphql/graphql.go:22

Pathstring
The Path value.
MaxBodyBytesint64
The MaxBodyBytes value.
MaxVariableBytesint
The MaxVariableBytes value.
MaxDepthint
The MaxDepth value.
MaxAliasesint
The MaxAliases value.
MaxComplexityint
The MaxComplexity value.
MaxListLimitint
The MaxListLimit value.
AllowIntrospectionbool
The AllowIntrospection value.
Resourcesmap[string]ResourceOptions
Resources optionally renames or suppresses generated surfaces by collection/global slug. Omitted resources use their manifest labels and expose both queries and mutations.
Queries[]ExtensionField
The Queries value.
Mutations[]ExtensionField
The Mutations value.
ValidationRules[]graphql.ValidationRuleFn
The ValidationRules value.

Zero values select bounded secure defaults. Introspection is disabled unless explicitly enabled.

Resources keys are collection or global slugs. Overrides change only GraphQL names/surfaces, not manifest slugs or REST routes.