Replies: 2 comments 1 reply
-
This appears to be related to the fact that my token item is used in a GSI but it's an optional field (meaning the GSI would simply not contain that entry) but electro is complaining that because it's used in a GSI it's required anyway, which is not true according to dynamo |
Beta Was this translation helpful? Give feedback.
-
so further on GSI issue, I have my indexes (primary and two GSIs setup this way)
but not all my records have token and that's okay for a GSI but not for electro. if I comment out the byToken block my insert works, but then I can't query using the GSI via electro. I guess I can make a second Entity for the same table, is that the best option? |
Beta Was this translation helpful? Give feedback.
-
I've gone through the docs on trying to use the Typescript types correctly but can't seem to get it working. I have two issues.
First, I just have an extremely simple helper function where I can pass parameters and I'm trying to get the return type right. I have:
I've tried all variations but typescript (5.1.6) is flatting it no matter what.
The second issue is that on my write() function I have two required and two optional parameters. Since they may be undefind, I should be able to include them verbatim and with data this works, but it's complaining that token can be undefined which is invalid, even though in the attributes it's set to required: false
Beta Was this translation helpful? Give feedback.
All reactions