DownloadMethod.ApolloRegistrySettings
STRUCT
DownloadMethod.ApolloRegistrySettings
Swift
1public struct ApolloRegistrySettings: EquatableProperties
apiKey
Swift
1public let apiKey: StringThe API key to use when retrieving your schema from the Apollo Registry.
graphID
Swift
1public let graphID: StringThe identifier of the graph to fetch. Can be found in Apollo Studio.
variant
Swift
1public let variant: String?The variant of the graph in the registry.
Methods
init(apiKey:graphID:variant:)
Swift
1public init(apiKey: String,
2 graphID: String,
3 variant: String = "current")Designated initializer
Parameters:
apiKey: The API key to use when retrieving your schema.
graphID: The identifier of the graph to fetch. Can be found in Apollo Studio.
variant: The variant of the graph to fetch. Defaults to "current", which will return whatever is set to the current variant.
Parameters
| Name | Description |
|---|---|
| apiKey | The API key to use when retrieving your schema. |
| graphID | The identifier of the graph to fetch. Can be found in Apollo Studio. |
| variant | The variant of the graph to fetch. Defaults to “current”, which will return whatever is set to the current variant. |