In this video we are going to use read item in batch for Dynamo DB table.
For that purpose, please open the documentation and we are going to use batch gate item command.
If you click this command, you can see the example usage and this is the command and here is the our
input.
If you check the our input again, we see the request items, but this time we will provide the only
key information to get batch items.
To do so.
Please open the red badges.
So please open the visitor code and go to read batch JS that we have implemented for this action.
As you can see that everything is same, only the command is changed, batch get item command and the
parameters you can see the parameters in here.
Again, we see the request items product is our dynamo DB table name and we provide the key information
which is the partition K number one and number two and we can give the some projection expressions,
which is the attributes of our table.
So let's run these JS file and see what happened.
We will run, not read batch JS hit enter.
See that we get the 200 success response and the response come is an object because it is returning
JSON object.
That's why we can see the object in here.
As you can see that we have finished the get batch item and in the next video we are going to learn
querying and scanning dynamo DB table.