DocumentGenerator

Generates a GraphQLDocuments Kotlin object containing the full document text for each operation as raw string constants.

Example output:

public object GraphQLDocuments {
public const val GetCurrentUser: String = """
query GetCurrentUser {
Viewer {
id
name
}
}
"""
}

Functions

Link copied to clipboard
fun generate(operations: List<GraphQLOperationInfo>, packageName: String): FileSpec