EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
ApolloSchemaDownloader
STRUCT
ApolloSchemaDownloader
Swift
1public struct ApolloSchemaDownloaderA wrapper to facilitate downloading a GraphQL schema.
Methods
fetch(configuration:)
Swift
1public static func fetch(configuration: ApolloSchemaDownloadConfiguration) throwsDownloads your schema using the specified configuration object.
Parameters:
configuration: The
ApolloSchemaDownloadConfigurationused to download the schema.
Returns: Output from a successful fetch or throws an error.
Throws: Any error which occurs during the fetch.
Parameters
| Name | Description |
|---|---|
| configuration | The ApolloSchemaDownloadConfiguration used to download the schema. |