validateAsSchema

@ApolloExperimental()
fun GQLDocument.validateAsSchema(): GQLResult<Schema>
  • Validate the given document as a schema.

  • Add a schema definition if there is none

  • Merge type extensions

Return

a GQLResult containing the schema and any potential issues