aquametalabs / aquameta

Web development platform built entirely in PostgreSQL
GNU General Public License v3.0
1.1k stars 52 forks source link

endpoint.function is trimming off null arguments #147

Open erichanson opened 5 years ago

erichanson commented 5 years ago

A function call like this:

endpoint.schema('x').function('foo', [ 'hi', 'mom', null ]).then( ... )

results in the proper call to endpoint.request() in the db, but the resultant sql query omits the trailing null argument, in this case just calling

select foo('hi','mom');