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?

gefragt vor 2 Jahren482 Aufrufe
1 Antwort
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"] }

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen