parseWithRootTypes
Parses a schema file and returns a SchemaParseResult containing all schema-level type definitions and any root operation type names defined by a SchemaDefinition.
Return
SchemaParseResult with type definitions and root type names.
Parameters
file
The schema.graphql file.