Skip to content

Commit 2fc5b5b

Browse files
authored
Update GetProducts.js (Azure#884)
Corrected input model so it works
1 parent 409190f commit 2fc5b5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/samples-js-v4/src/functions/GetProducts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const { app, input } = require('@azure/functions');
77
const sqlInput = input.generic({
88
type: 'sql',
99
commandText: 'select * from Products where Cost = @Cost',
10+
commandType: 'Text',
1011
parameters: '@Cost={cost}',
1112
connectionStringSetting: 'SqlConnectionString'
1213
})

0 commit comments

Comments
 (0)