fritzy / gatepost

Node.js module for binding postgres queries to models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add a required flag for oneArg methods

nlf opened this issue · comments

commented

if oneArg is set and required is true, then raise an error if no results are returned. this would prevent having to manually 404 in a handler (it should raise an error that would result in a 404 when combined with pgboom)