function

GenerateSDL

Generate deterministic SDL without starting an application or enabling network introspection.

Example

go
sdl, err := graphql.GenerateSDL(app.Manifest(), graphql.Options{
  AllowIntrospection: false,
})

Arguments

ArgumentTypeDescription
manifestschema.ManifestThe manifest value.
options[]OptionsThe options value.

Returns

The declared result.

(string, error)

Full signature

func GenerateSDL( manifest schema.Manifest, options ...Options, ) (string, error)

Source plugins/graphql/sdl.go:16

Related types

  • Manifest

    An immutable versioned schema contract.

  • Options

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