SchemaService constructor
SchemaService(
- DocumentNode schema
Creates a new SchemaService and initializes the type visitor.
The constructor automatically processes the schema by accepting the type visitor, which builds an internal index of all type definitions for efficient lookup operations.
schema The GraphQL schema document to process
Implementation
SchemaService(this.schema) : typeVisitor = TypeDefinitionNodeVisitor() {
schema.accept(typeVisitor);
}