type

Options

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

Properties

PropertyTypeDescription
PathstringThe Path value.
MaxBodyBytesint64The MaxBodyBytes value.
MaxVariableBytesintThe MaxVariableBytes value.
MaxDepthintThe MaxDepth value.
MaxAliasesintThe MaxAliases value.
MaxComplexityintThe MaxComplexity value.
MaxListLimitintThe MaxListLimit value.
AllowIntrospectionboolThe AllowIntrospection value.
DisablePlaygroundboolDisablePlayground removes the GraphQL playground from the admin. The playground follows the admin's access policy and needs the @riducms/plugin-graphql admin package; disable it for an API-only application that does not install that package.
Resourcesmap[string]ResourceOptionsResources optionally renames or suppresses generated surfaces by collection/global slug. Omitted resources use their manifest labels and expose both queries and mutations.
Queries[]ExtensionFieldThe Queries value.
Mutations[]ExtensionFieldThe Mutations value.
ValidationRules[]graphql.ValidationRuleFnThe ValidationRules value.

How it works

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.

Full signature

type Options struct { Path string MaxBodyBytes int64 MaxVariableBytes int MaxDepth int MaxAliases int MaxComplexity int MaxListLimit int AllowIntrospection bool // DisablePlayground removes the GraphQL playground from the admin. The // playground follows the admin's access policy and needs the // @riducms/plugin-graphql admin package; disable it for an API-only // application that does not install that package. DisablePlayground 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 }

Source plugins/graphql/graphql.go:22