noppoMan / npdynamodb

A Node.js Simple Query Builder and ORM for AWS DynamoDB
112 stars 18 forks source link

whereIn not working #56

Closed vinodhum closed 7 years ago

vinodhum commented 7 years ago

InvalidParameterType: Expected params.RequestItems['tablename'].Keys[0]['EmployeeId'] to be a structure

below is what i was trying and I keep getting above error, i checked all the keys and table name everything is correct. but still keep getting above error.

function (callback) { npd().table('tablename') .whereIn('EmployeeId', ['emp_id']) .then(function (data) { callback(null, data.toArray()); }) }

noppoMan commented 7 years ago

umm, I've never seen this error. Could you send me the table structure?(I'm thinking you may have RangeKey in the table)

vinodhum commented 7 years ago

Primary partition key EmployeeId (String) Primary sort key -

I can do other operation like, query, put, where, destroy but failing on whereIn

vinodhum commented 7 years ago

hi any update on how to resolve it ?