AWS Dynamodb - PartiQL

0

Hi, i am using Dynamodb ExecuteStatement with Parameter attribute in nodejs. I am dynamically passing string array to one of the column. But i am getting below error while executing. please suggest the fix.

InvalidParameterType: Expected params.Parameters[1].SS[0] to be a string

Code Snippet:

Parameters: [ { S: <dynamic value 1>

    },
     { SS: [<dynamic value 2>] // eg: l1,l2
    }
  • Can you please write the query that you are trying to execute? and the table/object structure you are using?

已提問 2 年前檢視次數 482 次
1 個回答
0

Statement: ` UPDATE "lab_results" SET "notification_status"= 'Notified' WHERE "cerner_millennium_id" = ? AND "lab_result_id" IN ?

Reading a json request which is in below format and passing the same to the above query for updation. { "cerner_millennium_id" : "1", "lab_result_id" : ["lr3","lr4"] }

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南