Docs
Launch GraphOS Studio


STRUCT

GraphQLResult

public struct GraphQLResult<Data: RootSelectionSet>

Represents the result of a .

Properties

data

public let data: Data?

The typed result data, or nil if an error was encountered that prevented a valid response.

errors

public let errors: [GraphQLError]?

A list of errors, or nil if the completed without encountering any errors.

extensions

public let extensions: [String: AnyHashable]?

A dictionary which services can use however they see fit to provide additional information to clients.

source

public let source: Source

Source of data

Methods

init(data:extensions:errors:source:dependentKeys:)

public init(data: Data?,
extensions: [String: AnyHashable]?,
errors: [GraphQLError]?,
source: Source,
dependentKeys: Set<CacheKey>?)
Next
Introduction
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company