SchemaDownloader
Types
Functions
Link copied to clipboard
fun download( endpoint: String?, graph: String?, key: String?, graphVariant: String, registryUrl: String = "https://graphql.api.apollographql.com/api/graphql", schema: File, insecure: Boolean = false, headers: Map<String, String> = emptyMap())
Content copied to clipboard
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, specVersion: SchemaDownloader.SpecVersion): String
Content copied to clipboard
throws if an HTTP or network error happens
Link copied to clipboard
fun getIntrospectionQuery(specVersion: SchemaDownloader.SpecVersion): String
Content copied to clipboard