compile

fun compile(schemaIdl: String): GraphQLSchema(source)

Builds a graphql-java GraphQLSchema from a schema IDL string.

Registers pass-through coercing for custom scalars not built into graphql-java. Registers no-op data fetchers for root operation types (Query, Mutation, Subscription) so the schema is executable.

Return

A compiled executable GraphQLSchema.

Parameters

schemaIdl

The schema definition in SDL format.

Throws

if schema parsing or building fails.