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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ