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. |