PageInfo

public class PageInfo : GraphQLObject

Page Info

This is the information about the current Page. This Information includes the start and end cursor and whether or not there’s adjacent pages.

  • Initializer for Page Info

    Declaration

    Swift

    public init(hasNextPage: Bool,
                hasPreviousPage: Bool,
                startCursor: String?,
                endCursor: String?)

    Parameters

    hasNextPage

    is there a page after this one

    hasPreviousPage

    is there a page before this one

    startCursor

    What’s the cursor of the first item. (nil if empty)

    endCursor

    What’s the cursor of the last item. (nil if empty)