john-kelly / elm-postgrest

Make PostgREST requests in Elm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should offset be just an Int?

randomer opened this issue · comments

commented

So instead of Nothing it would simply be 0

this is a good point.

it's almost a case for bringing back opaque Limit and Offset 👍 It might be a bit weird that the options type would look like:

{ filters: ...
, orders: ...
, limit: Maybe Int
, offset: Int
}

I'm not convinced either way tho.

agreed