Skip to content

Commit

Permalink
[DOCS-3752] Event Feeds: Document page_size limit (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig authored Nov 18, 2024
1 parent 07a62d9 commit bd13d1d
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 @@ -206,6 +206,9 @@ func EventFeedStartTimeUnixMicros(ts int64) 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 bd13d1d

Please sign in to comment.