from
Builds a SchemaIndex from parsed schema definitions.
Parameters
types
The parsed schema type definitions.
Throws
if duplicate schema names are encountered.
fun from(types: List<SchemaType>, queryTypeName: String?, mutationTypeName: String?, subscriptionTypeName: String?): SchemaIndex(source)
Builds a SchemaIndex with optional root operation type names.
Parameters
types
The parsed schema type definitions.
queryTypeName
The name of the root query type, or null.
mutationTypeName
The name of the root mutation type, or null.
subscriptionTypeName
The name of the root subscription type, or null.
Throws
if duplicate schema names are encountered.