You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've set up TypedORM with NestJS and am able to create entities in DynamoDB but when I go to query them for any operation, (find, update, delete) I always get back a The provided key element does not match the schema error.
Stack trace:
[Nest] 63514 - 06/14/2023, 12:35:37 AM ERROR [ExceptionsHandler] The provided key element does not match the schema
ValidationException: The provided key element does not match the schema
at throwDefaultError (/Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js:8:22)
at /Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js:18:39
at de_UpdateItemCommandError (/Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js:2511:20)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js:7:24
at /Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/lib-dynamodb/dist-cjs/baseCommand/DynamoDBDocumentClientCommand.js:26:34
at /Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js:14:20
at /Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js:27:46
at /Users/kasim/Documents/Xcira/app-services/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:7:26
I've set up TypedORM with NestJS and am able to create entities in DynamoDB but when I go to query them for any operation, (find, update, delete) I always get back a
The provided key element does not match the schema
error.Stack trace:
TypedORM debug output for find:
TypedORM debug output for updates:
Table:
Entity:
Find, Update, and Delete code:
Curiously the delete operation also doesn't seem to be transforming the payload:
The text was updated successfully, but these errors were encountered: