@@ -14,6 +14,27 @@ Optional query examples below use [`justifill`](https://pursuit.purescript.org/p
14spago install justifill
14spago install justifill
19+Version 0.8 exposes optional query parameters as explicit `Maybe` fields. Calls that passed plain values no longer compile:
23+users <- api.listUsers { limit: 10, offset: 0 }
26+users <- api.listUsers { limit: Just 10, offset: Just 0 }
27+allUsers <- api.listUsers { limit: Nothing, offset: Nothing }
30+Import `Maybe(..)` from `Data.Maybe` when constructing these records directly. Alternatively, [`justifill`](https://pursuit.purescript.org/packages/purescript-justifill) wraps supplied values in `Just` and fills omitted fields with `Nothing`:
33+users <- api.listUsers (justifill { limit: 10 })
36+Path parameters and request bodies keep their existing argument shapes.
17## Quick Start
38## Quick Start
19### Example 1: Simple GET and POST Requests
40### Example 1: Simple GET and POST Requests