toSDL

fun GQLDocument.toSDL(indent: String = " ", includeBuiltInScalarDefinitions: Boolean = false): String

Outputs a schema document to SDL. For executable documents, use toUtf8()

SDL representations must skip scalars definitions.

See https://spec.graphql.org/draft/#sel-GAHXJHABAB_D4G