I am currently trying my hands on AWS DynamoDB, and have created a simple user table with user\_id as partition key and other attributes as first\_name and last\_name.

I want to list all of the users stored.

I am trying to perform a simple CRUD over it, and can retrieve single user, update item and delete item.
Retrieving all users is fairly simple task, but I am not able to make a query to do the same.

I have used scan operation and it works fine, but I want to write a query for the same.
I want to go to the table and get all items with [user\_id,first\_name,last\_name] for my 'list\_users' function.

I am new to AWS DynamoDB, regrets if this is a silly question.
Any help would be greatly appreciated.
Thanks!