Package-level declarations

Types

Link copied to clipboard
class SchemaCompiler(mappedScalars: Map<String, String> = emptyMap())

Compiles a GraphQL schema IDL string into an executable GraphQLSchema using graphql-java's IDL tools. Primarily used for validating GraphQL operation documents against the schema during code generation.

Link copied to clipboard
Link copied to clipboard
class TypenameInjector(schemaIndex: SchemaIndex)

Injects __typename fields into executable GraphQL operation documents for abstract type selections (interfaces and unions).

Link copied to clipboard

Tests that TypenameInjector injects __typename into executable documents for abstract (interface/union) selections, independently of any serialization backend. Response generation under SerializationBackend.NONE relies on this injection so consumers can still discriminate concrete types from the wire __typename.

Link copied to clipboard
data class ValidationResult(val isValid: Boolean, val errors: List<String>)

Result of validating a GraphQL operation document against a compiled schema.