SchemaDownloader

Functions

Link copied to clipboard
inline fun <T> Any?.cast(): T?
Link copied to clipboard
fun download(    endpoint: String?,     graph: String?,     key: String?,     graphVariant: String,     registryUrl: String = "https://api.apollographql.com/graphql",     schema: File,     insecure: Boolean = false,     headers: Map<String, String> = emptyMap())

Main entry point for downloading a schema either from introspection or from the Apollo Studio registry

Link copied to clipboard
fun downloadIntrospection(endpoint: String, headers: Map<String, String>, insecure: Boolean, failSafe: Boolean = false): String
Link copied to clipboard
fun downloadRegistry(    key: String,     graph: String,     variant: String,     endpoint: String = "https://api.apollographql.com/graphql",     headers: Map<String, String>,     insecure: Boolean): String
Link copied to clipboard

Get an introspection query that is compatible with the given features, as a JSON string.

Link copied to clipboard
fun shutdown()