function
New
func New(options ...Options) ridu.PluginRegister one GraphQL transport with secure defaults.
Source plugins/graphql/graphql.go:77
Pass zero or one Options value; more than one is invalid. The plugin uses the same access, validation, hooks, transactions, and redaction engine as REST.
Example
Plugins: []ridu.Plugin{
graphql.New(graphql.Options{
Path: "/graphql",
MaxDepth: 12,
AllowIntrospection: false,
}),
}