Skip to content

Commit

Permalink
[Style] Add comment about paginate(endpoint:makeQuery:isFirstPaginati…
Browse files Browse the repository at this point in the history
…on:)
  • Loading branch information
SHcommit committed Apr 29, 2024
1 parent 3c93620 commit 4fd18ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SHFirestoreService/FirestoreService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ public final class FirestoreService: FirestoreServiceProtocol {

}

/// 처음일떈 makeQuery로! 이때는 limit를 지정해줘야합니다.
/// 이후의 페이징부터는 cursor에 마지막으로 받은 document를 주면됩니다
/// If this is your first call to pagination, isFirstPagination must be set to true. For future paging, isFirstPagination must be changed to false.
/// You must specify a limit before querying in makeQuery. You also need to specify the query you want in this closure.
public func paginate<D, E>(
endpoint: E,
makeQuery: @escaping FirestoreQueryHandler,
Expand Down

0 comments on commit 4fd18ef

Please sign in to comment.