Executing Postgres stored procedure in Loopback remote method with multiple parameters
<p>I'm trying to execute a stored procedure via a remote method on one my models.  I'm able to execute very basic selects via custom SQL that utilize a single parameter, but can't seem to get an around an error passing multiple arguments into the proc.  Here's the error and below a look at my code.</p>

<p>Anybody have any insight on what's causing this?</p>

<pre><code>[error: bind message supplies 1 parameters, but prepared statement "" requires 3]
name: 'error',
length: '130',
'severity': 'ERROR',
code: '08P01',
detail: undefined,
hint: undefined,
position: undefined,
...
file: 'postgres.c',
line: '1556',
routine: 'exec_bind_message' }

ScenarioAsvTarget.prepopulate = function(prepopulate, cb) {
        var ds=ScenarioAsvTarget.dataSource;
        var sql = "SELECT PREPOPULATE_ASV_TARGET($1,$2,$3)";
        ds.connector.execute(sql,[prepopulate],function(err,targets) {
            if (err) console.error(err);
            console.info(targets);
            cb(err,targets);
        });     
    };

ScenarioAsvTarget.remoteMethod(
'prepopulate',
{
    http: {verb: 'post'},
    description: "Prepopulate target cloud infrastructure",
    accepts: [
              {arg: 'input_scenario_id', type: 'Number'},
              {arg: 'input_scenario_asv_id', type: 'Number'},
              {arg: 'input_user_id', type:'String'}
              ],
    returns: {arg: 'data', type: ['string'], root: true}
    }
);  
</code></pre>