STRUCT
GraphQLResult
GraphQLResult
public struct GraphQLResult<Data: RootSelectionSet>
Represents the result of a GraphQL operation.
Properties
data
data
public let data: Data?
The typed result data, or nil
if an error was encountered that prevented a valid response.
errors
errors
public let errors: [GraphQLError]?
A list of errors, or nil
if the operation completed without encountering any errors.
extensions
extensions
public let extensions: [String: AnyHashable]?
A dictionary which services can use however they see fit to provide additional information to clients.
source
source
public let source: Source
Source of data
Methods
init(data:extensions:errors:source:dependentKeys:)
init(data:extensions:errors:source:dependentKeys:)
public init(data: Data?,extensions: [String: AnyHashable]?,errors: [GraphQLError]?,source: Source,dependentKeys: Set<CacheKey>?)