@hackage / relay-pagination-servant

RelayPage servant combinator for Relay-style cursor pagination

Latest0.1.1.0

About

Metadata

  • Last updated , by shinzui
  • License BSD-3-Clause
  • Categories Web Development
  • Maintained by: Nadeem Bitar

  • Lottery factor: 1

Links

Installation

Readme

The RelayPage servant combinator: declares the four Relay pagination query parameters (first, after, last, before) on a route, validates them before the handler runs, and hands the handler one already-validated PageRequest. Ships HasServer, HasClient, and HasLink instances plus OpenAPI 3.1 documentation support via openapi-hs and servant-openapi-hs.