Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCursorsToEdges ¶
func ApplyCursorsToEdges[E Edge[C], C Cursor[C]](edges []E, after, before *C) (filtered []E, hadEdgesBeforeAfter, hadEdgesAfterBefore bool)
Returns a new slice containing only the edges that are within the range specified by the given cursors.
Types ¶
type PageInfo ¶
type PageInfo[C Cursor[C]] struct { HasPreviousPage bool HasNextPage bool StartCursor *C EndCursor *C }
PageInfo represents the information for the current page of results.
type TimeBasedRangeQuery ¶
func TimeBasedRangeQueries ¶
func TimeBasedRangeQueries[C TimeBasedCursor[C]](after, before *C, atOrAfterTimeIn, beforeTimeIn *time.Time, limit int) []TimeBasedRangeQuery
For a time-based request with the given parameters, returns a list of range queries that should be made to the resolver.
Limit is the maximum number of items to return. If it is negative, the last `limit` items will be returned. If it is zero, there is no limit.
Click to show internal directories.
Click to hide internal directories.