EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
ApolloStore.ReadTransaction
CLASS
ApolloStore.ReadTransaction
Swift
1public class ReadTransactionMethods
read(query:)
Swift
1public func read<Query: GraphQLQuery>(query: Query) throws -> Query.DatareadObject(ofType:withKey:variables:)
Swift
1public func readObject<SelectionSet: GraphQLSelectionSet>(ofType type: SelectionSet.Type,
2 withKey key: CacheKey,
3 variables: GraphQLMap? = nil) throws -> SelectionSet