Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Iron-Ham committed Mar 25, 2024
1 parent 8ff678a commit 3e77136
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ public class GraphQLQueryPager<Model>: Publisher {
}

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

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

0 comments on commit 3e77136

Please sign in to comment.