Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can update "number" fields but I can´t create them #353

Open
kikeiz opened this issue Jul 27, 2023 · 0 comments
Open

I can update "number" fields but I can´t create them #353

kikeiz opened this issue Jul 27, 2023 · 0 comments

Comments

@kikeiz
Copy link

kikeiz commented Jul 27, 2023

Let´s say that I have a table called "users". I´ve set the age as the sort key of a LSI for that table. I defined it as N within the attributeTypes. When I try to create a user, it sends the following message: "One or more parameter values were invalid: Type mismatch for Index Key "age" Expected: N Actual: S" I am sending a N but it is forcing it to string within the recursiveParseEntity method of this file: https://github.com/typedorm/typedorm/blob/v1.16.0-beta.2/packages/core/src/classes/transformer/base-transformer.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant