Skip to content

Commit 3e77136

Browse files
committed
Add docs
1 parent 8ff678a commit 3e77136

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apollo-ios-pagination/Sources/ApolloPagination/GraphQLQueryPager.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ public class GraphQLQueryPager<Model>: Publisher {
228228
}
229229

230230
/// Discards pagination state and fetches the first page from scratch.
231-
/// - Parameter cachePolicy: The apollo cache policy to trigger the first fetch with. Defaults to `fetchIgnoringCacheData`.
231+
/// - Parameters:
232+
/// - cachePolicy: The apollo cache policy to trigger the first fetch with. Defaults to `fetchIgnoringCacheData`.
233+
/// - callbackQueue: The `DispatchQueue` that the `completion` fires on. Defaults to `main`.
234+
/// - completion: A completion block that will always trigger after the execution of this operation.
232235
public func refetch(
233236
cachePolicy: CachePolicy = .fetchIgnoringCacheData,
234237
callbackQueue: DispatchQueue = .main,
@@ -238,6 +241,9 @@ public class GraphQLQueryPager<Model>: Publisher {
238241
}
239242

240243
/// Fetches the first page.
244+
/// - Parameters:
245+
/// - callbackQueue: The `DispatchQueue` that the `completion` fires on. Defaults to `main`.
246+
/// - completion: A completion block that will always trigger after the execution of this operation.
241247
public func fetch(
242248
callbackQueue: DispatchQueue = .main,
243249
completion: (() -> Void)? = nil

0 commit comments

Comments
 (0)