GraphQLDefaultValueRenderer

Renders GraphQL default literals as Kotlin expressions that match generated helper types.

Functions

Link copied to clipboard
fun render(defaultValue: String, type: GraphQLType, scalarMappings: Map<String, String>, schemaIndex: SchemaIndex): CodeBlock

Converts a GraphQL literal string into a Kotlin expression CodeBlock.