function
GenerateSDL
Generate deterministic SDL without starting an application or enabling network introspection.
Example
sdl, err := graphql.GenerateSDL(app.Manifest(), graphql.Options{
AllowIntrospection: false,
})Arguments
| Argument | Type | Description |
|---|---|---|
manifest | schema.Manifest | The manifest value. |
options | []Options | The options value. |
Returns
The declared result.
(string, error)Full signature
func GenerateSDL(
manifest schema.Manifest,
options ...Options,
) (string, error)