Module

Prospero.Relay

Package
purescript-prospero
Repository
rowtype-yoga/purescript-prospero

#PageInfo Source

#PageInfoRecord Source

type PageInfoRecord = { endCursor :: Maybe String, hasNextPage :: Boolean, hasPreviousPage :: Boolean, startCursor :: Maybe String }

#Edge Source

newtype Edge a

Constructors

Instances

#Connection Source

newtype Connection a

Constructors

Instances

#ConnectionArgs Source

type ConnectionArgs = { after :: Maybe String, before :: Maybe String, first :: Maybe Int, last :: Maybe Int }

#connectionFromArray Source

#mkConnection Source

mkConnection :: forall a. { edges :: Array (Edge a), hasNextPage :: Boolean, hasPreviousPage :: Boolean, totalCount :: Maybe Int } -> Connection a

#emptyConnection Source