GraphQLTypeMapper

Maps GraphQL types to KotlinPoet TypeName instances, respecting configured scalar mappings and knowledge of schema-defined input/enum types.

Functions

Link copied to clipboard
fun toKotlinType(type: GraphQLType, packageName: String, scalarMappings: Map<String, String>, schemaIndex: SchemaIndex): TypeName

Maps a GraphQLType to a KotlinPoet TypeName suitable for use in code generation.