Skip to content

Commit

Permalink
[DOCS-3752] Event Feeds: Document page_size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig committed Nov 18, 2024
1 parent 57ff77a commit 070950f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ func EventFeedStartTimeFromTime(ts time.Time) FeedOptFn {
}

// EventFeedPageSize set the page size for the [fauna.EventFeed]
func EventFeedPageSize(ts int) FeedOptFn {
return func(req *feedOptions) { req.PageSize = &ts }
// The page size is the maximum number of events returned per page.
// Must be in the range 1 to 16000 (inclusive).
// Defaults to 16.
func EventFeedPageSize(pageSize int) FeedOptFn {
return func(req *feedOptions) { req.PageSize = &pageSize }
}

0 comments on commit 070950f

Please sign in to comment.