function

GenerateSDL

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

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

Source plugins/graphql/sdl.go:16

@param manifest
The manifest value.
@param options
The options value.
@returns
The declared result.

Example

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

Related types

  • Manifest

    An immutable versioned schema contract.

  • Options

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