parse

Parses a schema file and returns all schema-level type definitions. Root operation type names from a SchemaDefinition are not included in this result; use parseWithRootTypes if you need them.

Return

List of extracted SchemaType definitions.

Parameters

file

The schema.graphql file.