Package com.apollographql.apollo3.compiler.operationoutput

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
class OperationDescriptor(    val name: String,     val source: String,     val type: String)

This structure is also generated by other tools (iOS, cli, ...), try to keep the field names if possible.

Link copied to clipboard
typealias OperationOutput = Map<String, OperationDescriptor>

OperationOutput is a map where the operationId is the key and OperationDescriptor the value

By default the operationId is a sha256 but it can be changed for custom whitelisting implementations

Functions

Link copied to clipboard
fun OperationOutput.findOperationId(name: String): String
Link copied to clipboard
fun BufferedSource.toOperationOutput(): OperationOutput