V1 Migration BatchGetCommand type mismatch #822
Closed
CrunchieDCD
started this conversation in
General
Replies: 2 comments
-
I created an issue instead of a discussion because that's probably more appropriate. #823 |
Beta Was this translation helpful? Give feedback.
0 replies
-
i am interested in learning from you how you make your queries and use the methods of v1 because i am struggling here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have been using dynamodb-toolbox for about 6 months and we're now upgrading our project to V1. Pretty much everything has gone smoothly except for BatchGetCommand.
I have followed the documentation for passing an array of BatchGetRequests into
Table.build(BatchGetCommand).requests(requests)
however the typerequests
always shows the errorArgument of type is missing the following properties from type BatchGetRequestProps: entity, params
, I don't get this error when using the tuple style of passing in requests, but tuple doesn't work for our situation.A side note that when I do try to use the tuple method, I end up with this import error at build time.
Error: Package subpath './dist/types/table/actions/batchGet' is not defined by "exports" in /project_path/node_modules/dynamodb-toolbox/package.json
I'm not really sure why that is, but I did notice that the imports described in the documentation didn't work for me. So my imports are:
Beta Was this translation helpful? Give feedback.
All reactions