From b7f4c2f832fb534395618a8cd0954f142e301479 Mon Sep 17 00:00:00 2001 From: Grant Kamin Date: Mon, 24 Feb 2020 12:56:17 -0600 Subject: [PATCH] Make GraphQLQueryWatcher Query Public Allow the using app to access the query on the watcher. --- Sources/Apollo/GraphQLQueryWatcher.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Apollo/GraphQLQueryWatcher.swift b/Sources/Apollo/GraphQLQueryWatcher.swift index 98cb2d7f60..fc33b1b6f7 100644 --- a/Sources/Apollo/GraphQLQueryWatcher.swift +++ b/Sources/Apollo/GraphQLQueryWatcher.swift @@ -3,7 +3,7 @@ import Dispatch /// A `GraphQLQueryWatcher` is responsible for watching the store, and calling the result handler with a new result whenever any of the data the previous result depends on changes. public final class GraphQLQueryWatcher: Cancellable, ApolloStoreSubscriber { weak var client: ApolloClientProtocol? - let query: Query + public let query: Query let resultHandler: GraphQLResultHandler private var context = 0