ApolloSchemaDownloader
STRUCT
ApolloSchemaDownloader
Swift
1public struct ApolloSchemaDownloader
A wrapper to facilitate downloading a GraphQL schema.
Methods
fetch(configuration:)
Swift
1public static func fetch(configuration: ApolloSchemaDownloadConfiguration) throws
Downloads your schema using the specified configuration object.
Parameters:
configuration: The
ApolloSchemaDownloadConfiguration
used 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. |